Skip to content

marscolony-io/bot

Repository files navigation

Work In Progress

Requirements

  1. 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

  1. discordx: Version 16.6.0 or newer of Node.js is required
  2. OAuth2 discord bot settings: https://discord-ts.js.org/docs/decorators/commands/slash/

Configuring Discord Bot

  1. See https://discord-ts.js.org/docs/decorators/commands/slash#authorize-your-bot-to-use-application-commands for authorising the bot
  2. 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

About

Public bot with basic info and notifications to a group

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published