python bot.pypip install python-dotenv discord.py tabulate-
BOT_TOKEN→ Discord bot token (KEEP SECRET)- Get it here: https://discord.com/developers/applications/
-
DB_PATH→ path to your local slidysim solves database- Example:
C:/programs/!PROGRAMS/slidysim29/solves.db
- Example:
-
DISCORD_USER_ID→ your Discord user ID- Example:
537316990679777280 - Used to restrict commands to you only
- Example:
This project does not store replays inside the bot.
Instead:
- Replays are saved into a GitHub repository you own
- Links are generated using GitHub Pages
-
Create your own GitHub repository Example: https://github.com/dphdmn/mytextfiles
-
Enable GitHub Pages
-
Clone the repo locally using git
-
Check
index.htmlin the repo for redirect logic
-
TXT_REPO_NAME- Example:
mytextfiles - Your GitHub repository name
- Example:
-
TXT_REPO_LOCAL_PATH- Example:
C:/Users/dphdmn/Documents - Folder that contains your cloned repo
- Example:
-
TXT_REPO_GITHUB- Example:
https://dphdmn.github.io - Your GitHub Pages base URL
- Example:
-
TXT_REPO_SUBFOLDERS- Example:
slidy/generated - Folder inside the repo where replay files are stored
- Example:
You may run into issues when using replay links generated by the TXT repo method due to URL length limits.
To fix this, use the Chrome extension:
Download here
If you don’t want to use a GitHub repo:
- Modify
save_replay_and_generate_urlfunction logic - Or send replay files directly as Discord attachments instead of generating URLs