|
||
---|---|---|
.forgejo/workflows | ||
.gitignore | ||
bot.py | ||
Dockerfile | ||
LICENSE | ||
README.md |
SimpleCounterGuilded
Because other counting bots suck™
How do I fucking run this bot?
Running this bot is so simple, you run this one-liner command
TOKEN=token CHANNEL=id python3 bot.py
Get the token from the bot controls bullshit, it's that fucking simple
Get the channel id from the fucking URL, or clicking "Copy Link" when you right-click your counting fuckery
https://www.guilded.gg/***/groups/********/channels/********-****-****-****-************/chat
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is the fucking channel ID, don't forget to fucking remove the fucking "/chat"
How do I run it all the time?
I only know how to do so that linux (fuck the windows bullshit) so I will show you how to do it in Linux
Create a file in /lib/systemd/systemd/counter.service
[Unit]
Description=A simple fucking counter bot in Guilded
After=network-online.target
[Service]
ExecStart=python3 /home/user/SimpleCounterGuilded/bot.py
User=user
Environment="TOKEN=token"
Environment="CHANNEL=id"
[Install]
WantedBy=default.target
Remember to replace the token and channel id from what I showed above
And then fucking run:
sudo systemctl enable --now counter
And BOOM! Your bullshit now runs all the fucking time and will run again when you turn your server on again
Hey! What about Docker?
Ok I think docker is good to use to not deal with all this shit, so use this docker compose file
services:
counter:
image: git.swee.codes/swee/simplecounterguilded:latest
restart: unless-stopped
environment:
- CHANNEL=id
- TOKEN=token
volumes:
- ./cache_count:/app/cache_count
If you want to use multiple channels and servers, you can go ahead and copy the whole thing except services
and change the name and change the environment variables, like this
services:
oneserver:
image: git.swee.codes/swee/simplecounterguilded:latest
restart: unless-stopped
environment:
- CHANNEL=id
- TOKEN=token
volumes:
- ./count_oneserver:/app/cache_count
anotherserver:
image: git.swee.codes/swee/simplecounterguilded:latest
restart: unless-stopped
environment:
- CHANNEL=other_id
- TOKEN=other_or_same_token
volumes:
- ./count_anotherserver:/app/cache_count
Remember to change the volume names for the cached counts
It'll be easier if you name each one as the server name