Note: these steps will barely get the bot running, many more steps are required to enable everything the bot has to offer
- Clone this repository with git
- install the required python dependencies
- Create a discord bot https://discord.com/developers/applications
- in the 'Bot' tab, enable 'Presence Intent' and 'Server Members Intent'
- in the 'Bot' tab, copy the token
- Create the file
config.iniin the repository source using theconfig_example.ini- insert the discord bot token
- Install Postgresql
- create a user with your os username
- create a database with your os username as its name
- import
data/schema.psqlinto that database (psql -U <user-name> <database-name> -f data/schema.psql)
- Create a discord server with all the required channels and categories
- overwrite the channel and category ids in
cogs/map_testing/__init__.py - to copy an id in discord, first enable Settings > Advanced > Developer Mode and then rightclick on the channel/category and select 'Copy ID'
- overwrite the channel and category ids in
- Get external binaries
- copy the
render_mapbinary (originally from libtw2/render_map) fromdata/tools/render_map/render_mapand place it indata/map-testing
- copy the
- Create directories
logsdirectory in the repository roottmpdirectory indata/map-testing
- Edit code that interact with ddnet-owned servers
- in
cogs/map_testing/__init__.py, comment out parts of the function bodies of the functionsddnet_upload,ddnet_delete,archive_testlog - in
bot.py, comment out the'cogs.status',line
- in
- Execute the file
run.pywith python