club elec uses Gitea for the development of its free softwares. Our GitHub repositories are only mirrors. If you want to work with us, fork us on collabore forge (no registration needed, you can sign in with your GitHub account).
club elec utilise Gitea pour le développement de ses logiciels libres. Nos dépôts GitHub ne sont que des miroirs. Si vous souhaitez travailler avec nous, forkez-nous sur collabore forge (l’inscription n’est pas nécessaire, vous pouvez vous connecter avec votre compte GitHub).
club elec’s Discord bot for the electrogram service
About • Features • Deploy • Configuration • License
Discord bot for saving messages from a given chat room and making them accessible via a Web interface?
- ✅ Easy to use
- ✅ Save messages
- ✅ Save attachments
- ✅ Create threads for each message
- ✅ Add a score when publishing messages on a daily basis
- ✅ Thumbnail generation
- ✅ Efficient management of user profile updates
- ✅ Management of message and/or attachment deletion
- ✅ Management of changes to messages and/or attachments
- ✨ Using Discord interactions
We have deployed electrogram bot on a server running Debian 11.
Please adapt these steps to your configuration, ...
We do not describe the usual server configuration steps.
apt install python3-pip python3-venv libmariadb-dev
groupadd electrogram-bot
useradd -r -s /sbin/nologin -g electrogram-bot electrogram-bot
mkdir /opt/electrogram-bot
chown electrogram-bot:electrogram-bot /opt/electrogram-bot
cd /opt/electrogram-bot
runuser -u electrogram-bot -- git clone https://forge.collabore.fr/ClubElecINSSET/electrogram-bot .
runuser -u electrogram-bot -- virtualenv .env
runuser -u electrogram-bot -- .env/bin/pip install -r requirements.txt
cp electrogram-bot.service /etc/systemd/system/
systemctl enable electrogram-bot
systemctl start electrogram-bot
To configure electrogram bot, please modify the configurations of the systemd service according to your needs.
Do not forget to create an application in the Discord Developer Portal and to give the permissions:
- Manage Roles
- Create Public Threads
- Manage Messages
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.