discac - small program to change your discord bot's avatar.
I need to periodically change avatars for my discord bots.
I think small program that will run periodically triggered by native system timer is better than integrating this functionality in every bot.
Requires: git
, cargo
git clone https://github.com/TanteiBot/discac.git
cd discac/
sh ./scripts/publish-x86-64-Linux.sh
- Executable and sample config will be located in
output
directory
Requires wget
wget https://github.com/N0D4N/discac/releases/latest/download/x86_64-linux.zip
unzip x86_64-linux.zip
- Fill your bot token and paths to directories where bot's avatars are located to
temp.config.json
- Rename
temp.config.json
toconfig.json
- You are ready to go
sudo mkdir -p /usr/local/bin/discac
- Choose a name for a profile.
discac
supports updating profiles of multiple bots with one executable. For differentiating between them profiles are used. - Copy next command and replace first
profile_name
at its start with name of profile you have chosen earlier. (export DISCAC_PROFILE_NAME=profile_name ; sudo mkdir -p /usr/local/bin/discac/profiles/"$DISCAC_PROFILE_NAME" && sudo cp config.json /usr/local/bin/discac/profiles/"$DISCAC_PROFILE_NAME" && sudo cp discac /usr/local/bin/discac/ && sudo cp -r systemd/* /etc/systemd/system/)
sudo systemctl daemon-reload
- Next command will enable timer to run
discac
every 12h, you can change it by editingdiscac@.timer
file. Replaceprofile_name
in it with profile name you have chosen earlier.
sudo systemctl enable --now discac@profile_name.timer
Copyright 2021-2022 N0D4N
discac is licensed under the GPLv3: https://www.gnu.org/licenses/gpl-3.0
See https://github.com/TanteiBot/discac/blob/master/LICENSE for more details.