Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.29 KB

README.md

File metadata and controls

46 lines (39 loc) · 1.29 KB

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

Some useful links

Local setup

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