Code is finished and will be published here asap.
The Bot uses most of UnbelievaBoat's commands for minigames and economy (not moderation tho).
It emerged from the problem of UB having a balance ceiling and no automated role-income increasing to user's balances.
The goal was to make a easily customizable Template of a discord bot, also fixing the issues stated above. You can use and adjust the code as you want so it fits your needs.
- Create a Discord Application for your bot (see https://youtu.be/b61kcgfOm_4, https://discord.com/developers/applications)
- In the Discord Dev Portal, in the "Bot" tab of your application, enable presence intent and server members intent.
- Download the code, structured as in this repo.
- Open the
main.py
file, line 40 and change the token to the one of your created bot. - If you want log info : In
main.py
, go to line 88 and put a channel ID of the server you want to use the bot in. (Activate Developer Mode Discord to copy channel IDs). This channel will be used to send information about the bot status. Also uncomment line 88, 93, 94, 100 and 109 - In the
database/database.json
file: scroll down to the symbols part and put a custom emoji name in the "symbol_emoji" variable. - for example if you have a bitcoin emoji called "btc". It must be an emoji you uploaded to the server, not a discord-wide one. - Invite the bot to your server as shown in https://youtu.be/b61kcgfOm_4
- Install python3 if you dont have it
- Install the Discord Api for python3 using pip (
pip install discord.py
) - In your server, create a role named "botmaster" and give it to people who should be bot admins.
- Launch main.py with python3. You should be good to go!