-
Notifications
You must be signed in to change notification settings - Fork 2
Setup
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.
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.