custom-discord-bot-maker
Sorry for using Translator.
Each description may be inaccurate.
how to use
1. Make new application at https://discord.com/developers/applications
2. Make a bot
3. Copy the bot's token and id.
4. Paste each in the appropriate place for ./config.json.
5. set prefix
6. set commands at ./coms.json
7. start main.py
commands.py
A few functions to use at main.py are implemented.
coms.json
{
"commands": {
"command1": "content1",
"command2": "content2"
}
}
Sub-elements of commands can be added. When prefix+command1 is used in the Discord chat, content1 is output.
config.json
{
"settings": {
"token": "enter token here",
"prefix": "enter prefix here",
"bot_id": "enter id here"
},
"games": {
"game1": "status message 1",
"game2": "status message 2"
}
}
Each token, prefix, and bot_id must be filled. And the sub-elements of games are output as status message 1 and status message 2 are changed every 5 seconds. A game and a status message may be added.
jsonchecker.py
It is a function produced by main.py to examine config.json.
main.py
After filling in the two files, config.json and coms.json, respectively, run main.py and the Discordbot will function normally.