a sample code to create a simple notification bot for discord
- clone this repo
- edit
settings.json
- run
py main.py
note: do not edit data.json
by yourself. it will be generated automatically.
- write code based on
module/fortune.py
(sample module) - add your module on
settings.json
[
{
"name": "fortune_teller", // just a name to manage modules
"enabled": true, // if this module is enabled
"module": "fortune", // the module name (file name)
"args": [], // main() function's argments to run
"cool": 120, // cool time (mins)
"webhook": "https://discord.com/api/webhooks/YOUR_WEBHOOK_URL" // discord webhook url
}
]
output for example module module/fortune.py