SEMF - (Discord) Bot
TODO:
- github action deploy
- missed ones while bot downtime, recount after x
- Offline database sync through
cache.py
+ events - cleanup
- Move all env variables to global config
- ensure exclusion of private stuff from counts
git clone [email protected]:semf-nexus/bot.git \
&& cd ./bot
Install dependencies
python3 -m pip install -U discord.py
Run Discord bot:
# DISCORD_SKIP_HOOK=1 Skips manually syncing the Discord Interaction (i.e. AppCommands)`
DISCORD_SKIP_HOOK=0 \
DISCORD_GUILD_ID=844566471501414463 \
BOT_CACHE_GIT_REPOSITORY="[email protected]:semf-nexus/discord-mirror.git" \
BOT_CACHE_GIT_DIRECTORY="./.bot/cache/git" \
BOT_CACHE_GIT_BRANCH="main" \
DISCORD_CLIENT_ID="..." \
DISCORD_TOKEN="..." \
python3 ./bot/run.py
Generating an oauth url to add the bot to a server
DISCORD_CLIENT_ID="..." \
DISCORD_TOKEN="..." \
python3 ./bot/oauth2_url.py