From Torch Wiki
Jump to: navigation, search

A Torch plugin to connect your torch server to Discord

Discord Bot Creation

You need to create a discord BOT to your Discord channel. Follow these instructions:

Then add the bot to your server by replacing CLIENTID with your bot's client ID (Found in the o2Auth tab)

Example Configuration File

<?xml version="1.0" encoding="utf-8"?>
<SEDBConfig xmlns:xsd="" xmlns:xsi="">
 <ChatChannelId>ID NUMBER HERE</ChatChannelId>
 <Format>:rocket: **{p}**: {msg}</Format>
 <CommandChannelId>ID NUMBER 2 HERE</CommandChannelId>
 <StatusChannelId>ID NUMBER 3 HERE</StatusChannelId>
 <Started>:white_check_mark: Server Started!</Started>
 <Stopped>:x: Server Stopped!</Stopped>
 <Connect>:key: The player {p} connected to server</Connect>
 <Join>:sunny: The player {p} joined the server</Join>
 <Leave>:new_moon: The player {p} left the server</Leave>
 <StatusPre>Server Starting...</StatusPre>
 <Status>{uptime@hh:mm} | {p} players | SS {ss}</Status>
 <StatusUrl>URL HERE</StatusUrl>
 <FactionChannels />
 <FacFormat>:ledger: **{p}**: {msg}</FacFormat>

The name of the config file is "SEDiscordBridge.cfg"

External Resource Information

SEDiscordBridge uses the library DSharpPlus. More info here:

We use this library included in our release files following the MIT License from here:

All code required for the bot is handled by the plugin. You just need to enter the token and other fields.

To get channel IDs, go to the Appearance tab in your Discord user settings and switch on "Developer mode", then right click any channel and select "Copy ID"