Skip to content

Discord bot to update on Eskom load-shedding stage on the server channel.

License

Notifications You must be signed in to change notification settings

Moon-developer/Discord-Eskom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deskom Bot

Deskom is a Simple Python Discord bot that monitors Eskom's site for load-shedding stage changes and announces them to server channels.

Maintenance GitHub release (latest by date) GitHub Pylint

Setup

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>

Manual Installation

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

USAGE

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.

Author

developer: Marco Fernandes