Skip to content

Commit

Permalink
Fix lua script typo's and fix some spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
HotaruBlaze committed May 7, 2023
1 parent 8adb004 commit ae043b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tes3mp/scripts/custom/goTES3MP/chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ customEventHooks.registerHandler(
local messageJson = {
method = "rawDiscord",
source = "TES3MP",
serverid = GOTES3MPServerID,
serverid = goTES3MPServerID,
syncid = GoTES3MPSyncID,
data = {
channel = discordChannel,
Expand All @@ -48,7 +48,7 @@ customEventHooks.registerValidator(
local messageJson = {
method = "rawDiscord",
source = "TES3MP",
serverid = GOTES3MPServerID,
serverid = goTES3MPServerID,
syncid = GoTES3MPSyncID,
data = {
channel = discordChannel,
Expand All @@ -67,13 +67,13 @@ customEventHooks.registerValidator(
"OnPlayerSendMessage",
function(eventStatus, pid, message)
if string.len(message) > maxCharMessageLength then
tes3mp.SendMessage(pid,color.Red .."[goTES3MP] " ..color.Default .. "Warning, Message was too long and was not relayed to discord\n",false)
tes3mp.LogMessage(enumerations.log.WARN,"Chat message for " .. '"' .. tes3mp.GetName(pid) .. '"' .. " was not sent")
tes3mp.SendMessage(pid, color.Red .."[goTES3MP] " .. color.Default .. "Warning, Message was too long and was not relayed to discord\n",false)
tes3mp.LogMessage(enumerations.log.WARN, "Chat message for " .. '"' .. tes3mp.GetName(pid) .. '"' .. " was not sent")
else
local messageJson = {
method = "rawDiscord",
source = "TES3MP",
serverid = GOTES3MPServerID,
serverid = goTES3MPServerID,
syncid = GoTES3MPSyncID,
data = {
channel = discordChannel,
Expand Down
3 changes: 1 addition & 2 deletions tes3mp/scripts/custom/goTES3MP/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ local goTES3MPVPNCheck = require("custom.goTES3MP.vpnChecker")

goTES3MP.defaultConfig = {
serverid = "",
defaultDiscordServer = ""
defaultDiscordServer = "",
defaultDiscordChannel = "",
defaultDiscordNotifications = "",
discordChatChannel = "",
}

goTES3MP.config = DataManager.loadData("goTES3MP", goTES3MP.defaultConfig)
Expand Down

0 comments on commit ae043b6

Please sign in to comment.