Development
Steps for developing or self-hosting the bot.
Requirements
Steps
- Configure
.envby copying the example file:cp .env.example .envDISCORD_BOT_TOKEN- Bot token of the Discord applicationDISCORD_BOT_ID- Bot ID of the Discord applicationDISCORD_USER_ID- User ID of the bot owner
- Start the bot with
deno task dev
Data of all services can be populated manually with /bot reload. This happens
automatically every 15 minutes after the bot started.
Portal 2 Steam News (optional)
STEAM_NEWS_ENABLE- Enable or disable newsSTEAM_NEWS_DISCORD_WEBHOOK_URL- The Webhook URL for posting the news
Portal 2 Weekly CM Recap (optional)
BOARD_STATS_ENABLE- Enable or disable statsBOARD_STATS_DISCORD_WEBHOOK_URL-The Webhook URL for posting the stats
Speedrun.com Notifications (optional)
SRCOM_ENABLE- Enable or disable notificationsSRCOM_DISCORD_WEBHOOK_URL-The Webhook URL for posting the notificationsSRCOM_PHPSESSID- Session cookie of speedrun.com user account
GitHub Access (optional)
GITHUB_ENABLE- Enable or disable GitHub accessGITHUB_ACCESS_TOKEN- GitHub Personal Access Token for fetching public repositoriesGITHUB_APP_ID- GitHub application ID for creating issuesGITHUB_CLIENT_ID- GitHub application client IDGITHUB_CLIENT_SECRET- GitHub application client secretGITHUB_ORG_NAME- Name of organisation where the app is installedGITHUB_APP_PRIVATE_KEY_PATH- Path to the private key file of the installed app