Work In Progress
Requirements
- Create a
secrets.ts
in the root folder with the following:
export const TELEGRAM_BOT_TOKEN = 'aaa';
export const DISCORD_BOT_TOKEN = 'bbb';
export const DISCORD_REALTIME_CHANNEL_ID = 'ccc'; // channel should be a TEXT_CHANNEL; can be obtained by right-clicking channel and selecting "Copy ID"
export const DISCORD_REALTIME_CHANNEL_WEBHOOK_ID = 'ddd'; // see below for getting this info from discord
export const DISCORD_REALTIME_CHANNEL_WEBHOOK_TOKEN = 'eee';
export const DISCORD_REALTIME_CHANNEL_WEBHOOK_MESSAGE_ID = 'fff';
Discord Bot
Requirements
discordx
: Version 16.6.0 or newer of Node.js is required- OAuth2 discord bot settings: https://discord-ts.js.org/docs/decorators/commands/slash/
Configuring Discord Bot
- See https://discord-ts.js.org/docs/decorators/commands/slash#authorize-your-bot-to-use-application-commands for authorising the bot
- See https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks for discord webhooks; create it for the specific (read-only) channel: first part is the webhook ID, second part is the webhook token
Running the Application
yarn build
then yarn start