saydigital / fungiforme

1 stars 0 forks source link

Fun-GIF-orme

A Discord bot to manage the Fun-GIF-orme contest.

Fun-GIF-orme is a timed daily event on discord where GIFs are used to reply to posts in a channel and voted by users using the 🍄 reaction (both configurable in the ini file).

Most votes win!!

Installation

Please note that after installing the bot, it must be configured with the correct values for Token and Channel in fungiforme.ini; you can copy and rename the sample fungiforme.ini.example file to have a basic configuration.

Quick Set-up

Clone this repo on target server, create virtualenv, activate and install requirements.

Run fungiforme.py

Run the bot as a service

It is recommended to run this bot as a service so as it is always available, to configure the systemd service do the following:

[Service] User=fungiforme Group=fungiforme WorkingDirectory=/opt/fungiforme/ ExecStart=/opt/fungiforme/.venv/bin/python3 /opt/fungiforme/fungiforme.py Restart=always

[Install] WantedBy=multi-user.target

* Enable and start the bot

systemctl enable fungiforme.service

systemctl start fungiforme.service