A Discord bot for Longhorn Riichi's special tournament "UTA vs UTD". Functions include /register
, /create_table
, /pause_own_game
, etc.
bot.py
: entry point of the Discord bot; has the regular commands and command error handling/ext/extensions
: list of all modules for bot.py
to load from /ext/
, one per line/modules/pymjsoul
: a copy of mjsoul.py that provides MajsoulChannel
, a class for interfacing with Mahjong Soul's API/modules/mahjongsoul
: contains a wrapper of MajsoulChannel
for use in our bot (in /ext/extensions/UvUManager
)
First, cp config.template.env config.env
.
New Application
).
MESSAGE CONTENT INTENT
Discord Stuff
section of config.env. The bot token can be obtained through (SETTINGS -> Bot [-> Reset Token])
gs_service_account.json
in ext/UvUManager/Google Sheets Stuff
section of config.env
Mahjong Soul Stuff
section of config.envin a Unix shell:
pipenv install
pipenv shell
./start.sh
$sync
to sync the slash commands for that server.finish_time
of the tournament to be 90 days from the current time. Note that the deadline
still needs to be extended manually (this can't be automated because only the contest creator can extend the deadline).