Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.59 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.59 KB

Synergy Bot

The Synergy's official Discord bot.

Setup bot in Discord

  1. Create application in Discord
  2. Add bot to application in Discord
  3. Invite bot in test channel
  4. Get bot token
  5. Add config file to project
  6. Run npm run build && node dist/index.js to run the bot on the local wokstation in production mode.

More information on discord bot

Bot configuration

The configuration can be stored in multiple way, in order of priority:

  1. A JSON string in an environment variable named SNRG_CONFIG
  2. In a file synergy.config.json.

Config example

{
    "commandPrefix": "!",
    "discordBotToken": "<discord-bot-token>"
}

Development

Logger Color Code

Color Log Item function
green Success message successColor
red Error message errorColor
blue Command name commandColor
yellow User name or ID userColor
magenta Channel Name or ID channelColor
cyan Date or Datetime dateColor