Skip to content
RRyan2447 edited this page Oct 3, 2021 · 11 revisions

Making the bot

You first need to make a new bot on the Discord Developer Portal by selecting New Application, giving it a name and selecting Create. Upon the creation of your application, you should go to the Bot section on the left and select Add Bot, thus creating a Discord bot. You should select the Copy button under the Token section and keep note of the bot token. You should also enable Server Member Intents. You can then go to OAuth2 section on the left, select bot as the scope and administrator as the bot permissions, open the link generated and add it to your Discord server.

Configuring and running the bot

Once the Discord bot is added to your server, download the latest sdtb-setup.exe from the GitHub releases page, download Python, install Discord.py using pip install discord (py -m pip install discord for Windows), requests using pip install requests (py -m pip install requests for Windows) and run the sdtb-setup.exe (it should generate a 'sdtb' folder with some files inside). Open the config.json file using your default text editor and replace BOT_TOKEN_HERE with the previously copied bot token. You can change the other configuration options to suit your needs and/or preferences.

To run the bot, run the bot.py file, if any errors occur, refer to the errors page. Ensure you have developer mode enabled by going to User Settings → Advanced → Developer Mode → enable developer mode. In your Discord server with the bot, type +setup (+ referring to the default prefix which you may or may not have changed) and type the according responses. Modifications to the config.json file will need restarts of the entire bot.

Clone this wiki locally