A fully-functional Discord Bot that is capable of interacting with the Triton Media Platform to invoke, and track media jobs
-
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. -
Go to the Discord dev portal and create a new application (e.g. TritonBot)
-
Copy your ClientID
-
Go to the Discord Permissions Calculator and give your bot
Read Messages
,Send Messages
, andManage Messages
permissions at a bare minimum (permissions can be managed later after the bot is set up). -
Use the ClientID from Step #2 to generate a permissions deeplink URL and navigate to it.
-
Auth into Discord, and you should be provided with a modal popup asking you which servers you'd like to invite the bot to.
-
The DiscordBot should exist within your server as an offline entity
- Install it (setup a GOPATH)
git clone git@github.com:tritonmedia/discord-bot discord-bot; cd "discord-bot"
-
Copy your Token from the Discord Developer Portal and configure your config.yaml file in
./config
(see./config/config.example.yaml
) -
Run it
# in the discord-bot directory
make && ./bin/discord-bot
-
Go to Discord, and you should be able to communicate with the bot by invoking
!triton
. -
Killing (Ctrl+C) the application will cause the bot to go offline in Discord