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 Discord_Chat_Relay_Config.yml
4 ) restart server or reload scripts, followed by issuing the /discord reload -a command
This script has Message Constructor Library compatibility; if you don't already use this script, it's awesome and you should pick it up! Elsewise you'll just be missing out on click-able chat text. Works fine without.
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 103):
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:
- 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:
I'm notorious for tiny mistakes; so if there's an error, let me know and i'll fix it as quickly as i can. This is the script I use for my own server, minus a bit of logic removed that I didn't think should be included like my staff-chat and build-chat./plugins/denizen/data/Discord_Chat_Relay_Config.yml