HotaruBlaze / TES3MP_DiscordRelay

Discord Relay for TES3MP!
5 stars 4 forks source link

This repo is deprecated and no longer being worked on, It's replacement can be here: https://github.com/HotaruBlaze/goTES3MP

Discord Relay for TES3MP 0.7.0 (Webhook Branch)

This is one of my first attempts at scripting for TES3MP and Lua

(Read note below)

Note: Due to limiations with Lua, we are unable to use wss (websockets), This prevents the ability to have Discord -> tes3mp chat. You can follow progress here https://github.com/MrFlutters/TES3MP_DiscordRelay/issues/1

This branch has been tweaked to use webhooks as an "Lazy and quick" working alternative, while a more elegant solution is planned

Contributing

Feel free to submit Issues and Pull Requests.

Consistent tabulation
lowerCamelCase for local and global variables
UpperCamelCase for function names.

Warnings / Known issues

Installation

How to create a webhook

1) Create or select the channel you would like to use

2) Right click and edit the channel

webhook-img1

3) Select webhook from the side menu

webhook-img2

4) Create a webhook and customize it as you see fit

webhook-img3

Note: At this time the bot's name is set to the players name with no configuration option, So the name does not matter

5) Add the webhook to data/discord_config.json

6) You should see something like below when a player types ingame.

webhook-img4