Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 1.69 KB

README.md

File metadata and controls

69 lines (47 loc) · 1.69 KB

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