Sends new announcements from https://www.di.uoa.gr/announcements to discord
You can invite the bot or install it to host it yourself. (instructions below)
Invite link: https://discord.com/api/oauth2/authorize?client_id=881568952378073149&permissions=27664&scope=bot
The base of the bot can be used for sending other announcements / notifications as well by adding more cogs.
For any method you will need an api key from discord.
- Clone the repository
git clone https://github.com/DanielPikilidis/DIT-Announcements.git DitAnnouncements
cd DitAnnouncements
- Install required dependencies:
pip3 install -r requirements.txt
- Start the bot:
python3 bot.py
-
A new directory named "data" is now created. Paste your api key in the config.txt file inside that directory.
-
Start the bot again:
python3 bot.py
- Clone the repository:
git clone https://github.com/DanielPikilidis/DIT-Announcements.git DitAnnouncements
cd DitAnnouncements
- Build the Docker image:
docker build -t dit_announcements .
- Create and start the container:
docker run -d -v $(pwd)/data:/data -v $(pwd)/logs:/logs --restart unless-stopped --name dit_announcements dit_announcements
-
A new directory named "data" is now created. Paste your api key in the config.txt file inside that directory.
-
Restart the container:
docker start dit_announcements