Connects your discord bot to your Minecraft Server, and relays the chat two-ways as well as player events to your discord channel of choice. This script requires the plugin dDiscordBot found here: https://ci.citizensnpcs.co/job/dDiscordBot/
Want animated Emojis? Discord bots are nitro-equiped! Here's a quick guide for that:
1 ) Drop main script into
2a) Drop config file into
denizen/data/Discord_Chat_Relay_Config.yml[make sure it's named this as well]
2b) If this directory doesn't exist, create it
3 ) Plug your bot token & channel ID into
4 ) Restart server or reload scripts, followed by issuing the
/discord reload -a command
This script also has Votifier compatibility; if you want notifications in discord chat of votes, leave it as is, elsewise delete these lines (found on line 77-78):
Note: This event requires the plugin(s) DepenizenBukkit, Votifier.
Here are the two scripts in a link you'll need Separately:
*Click Here for the main script
*Click Here for the configuration script
Additionally, they can be copied here:
/discord link| Gives you the discord link from your Config
/discord reload| Reloads the discord configurations (Requires Operator)
/discord reload -a| Reloads the discord configurations and completely restarts the bot (Requires Operator)
/discord Message Channel <Message>| Messages a channel you put in your config as the bot (Requires Operator)
Things to note:
- You need to have your own bot, or at least a token to a bot with access to the discord channel you wish to relay chat to.
- Your bot must have permission to send messages in the channel you wish to relay chat to.
- you NEED to separate these files; never keep your discord token in ram. This second file is configured to be saved in as well as named: