Deskom is a Simple Python Discord bot that monitors Eskom's site for load-shedding stage changes and announces them to server channels.
Download the executable from the release package.
Might need to change file permissions with chmod
$ chmod +x bot
Now execute the file while passing in the bot token.
$ ./bot --token <your-bot-token-here>
First we clone the bot:
$ git clone https://github.com/qoder-za/Discord-Eskom.git deskom
$ cd deskom
Next we need to set up some environment variables for the bot. Create a .env
file in project root.
$ touch .env
Open the file and add the following
DISCORD_TOKEN = <your-bot-token-here>
Save and close the file.
Now we install the required dependencies and run start the bot up.
$ pip install -r requirements.txt
$ python bot.py
Once your bot is running and invited to a server you can run the following commands on discord:
send message: !eskom announce #channel
send message: !eskom disable
send message: !eskom stage
send message: !eskom help
The announce
command allows you to set a channel to announce on.
developer: Marco Fernandes