/discord-bot

A Discord Bot that is capable of interacting with the Triton Media Platform

Primary LanguageGoMIT LicenseMIT

Go Report Card codebeat badge

discord-bot

What is this?

A fully-functional Discord Bot that is capable of interacting with the Triton Media Platform to invoke, and track media jobs

Installation / Hacking

Discord Development Portal

  1. Create a sandbox Discord server or use a test text channel within an existing server. Change the Discord Server Notification scheme to be only @mentions or this will spam people with notifications.

  2. Go to the Discord dev portal and create a new application (e.g. TritonBot)

  3. Copy your ClientID

  4. Go to the Discord Permissions Calculator and give your bot Read Messages, Send Messages, and Manage Messages permissions at a bare minimum (permissions can be managed later after the bot is set up).

  5. Use the ClientID from Step #2 to generate a permissions deeplink URL and navigate to it.

  6. Auth into Discord, and you should be provided with a modal popup asking you which servers you'd like to invite the bot to.

  7. The DiscordBot should exist within your server as an offline entity

Local Development environment

  1. Install it (setup a GOPATH)
git clone git@github.com:tritonmedia/discord-bot discord-bot; cd "discord-bot"
  1. Copy your Token from the Discord Developer Portal and configure your config.yaml file in ./config (see ./config/config.example.yaml)

  2. Run it

# in the discord-bot directory
make && ./bin/discord-bot
  1. Go to Discord, and you should be able to communicate with the bot by invoking !triton.

  2. Killing (Ctrl+C) the application will cause the bot to go offline in Discord