Discord Integration Forge

Discord Integration Forge

666k Downloads

[BUG] Not sending messages to discord, bad login

juniorjunior opened this issue · 1 comments

commented

What happened?

  • Bot connects and I get messages from Discord to MC, but not from MC to Discord. Getting a log message:
    [03May2020 14:09:12.452] [modloading-worker-1/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.Discord:<init>:239]: ERROR! Bot does not have all permissions to work! [03May2020 14:09:12.452] [modloading-worker-1/INFO] [STDERR/]: [de.erdbeerbaerlp.dcintegration.DiscordIntegration:preInit:292]: Failed to login: Bot requires message read, message write, embed links and manage messages

However, I have verified several times that the bot does indeed have those permissions both by re-joining it to the server and double-checking perms then, and by checking perms inside Discord.

What should happen?

  • Bot should not complain about invalid perms and send messages to Discord.

Steps to reproduce

Version

  • 1.15
  • 1.12
  • 1.14

Mod version 1.1.14

Config file

`#General bot Configuration
[generalSettings]
#Wether or not the Bot should modify the channel description
botModifyDescription = false
#The channel ID where the bot will be working in
botChannel = "257304563818692608"
#Allowed Values: WATCHING, PLAYING, LISTENING, DISABLED
botPresenceType = "PLAYING"
#Insert your Bot Token here!
#DO NOT SHARE IT WITH ANYONE!
botToken = "super secret bot token"
#If you think the update check is annoying disable this
#Update checking is not yet implemented!!!
updateCheck = false
#The Name of the Game
#
#PLACEHOLDERS:
#%online% - Online Players
#%max% - Maximum Player Amount
botPresenceName = "Minecraft with %online% players"

#Webhook configuration
[webhook]
#The avatar to be used for server messages
serverAvatar = "https://raw.githubusercontent.com/ErdbeerbaerLP/Discord-Chat-Integration/master/images/srv.png"
#Wether or not the bot should use a webhook (it will create one)
serverName = "Server"
#Wether or not the bot should use a webhook (it will create one)
enableWebhook = true

#Customize messages of this mod
[messages]
#Chat message
#PLACEHOLDERS:
#%player% - The player´s name
#%msg% - The chat message
msgChatMessage = "Smooth: %player%: %msg%"
#PLACEHOLDERS:
#%player% - The player´s name
msgPlayerLeave = "%player% left Smooth Circles"
#Disable removal of color codes from chat to discord?
discordColorCodes = false
#A list of blacklisted modids
#Adding one will prevent the mod to send messages to discord using forges IMC system
imcModIdBlacklist = "["examplemodid"]"
#This message will edited in / sent when the server finished starting
msgServerStarted = "Smooth Server Started!"
#Message to show while the server is starting
#This will be edited to SERVER_STARTED_MSG when webhook is false
msgServerStarting = "Smooth Server Starting..."
#The message to print to discord when it was possible to detect a server crash
#Will also be used in the channel description
msgServerCrash = "Server Crash Detected 🤔"
#PLACEHOLDERS:
#%player% - The player´s name
#NOTE: This is currently not implemented because mixins are not working in 1.15!
msgPlayerTimeout = "%player% timed out!"
#Channel description while the server is online
#PLACEHOLDERS:
#%online% - Online player amount
#%max% - Maximum player count
#%tps% - Server TPS
#%motd% - The server MOTD (from server.properties!)
#%uptime% - The uptime of the server
description = "%motd% (%online%/%max%) | %tps% TPS | Uptime: %uptime%"
#Should /say output be sent to discord?
enableSayOutput = true
#Channel description while the server is starting
descriptionStarting = "Starting Smooth Circles..."
#PLACEHOLDERS:
#%player% - The player´s name
#%msg% - The death message
msgPlayerDeath = "%player% %msg% on Smooth Circles"
#The format of the uptime command and %uptime% placeholder
#For more help with the formatting visit https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/time/DurationFormatUtils.html
uptimeFormat = "dd 'days' HH 'hours' mm 'minutes' ss 'seconds'"
#This message will be sent when the server was stopped
msgServerStopped = "Smooth Server Stopped!"
#This is what will be displayed ingame when someone types into the bot´s channel
#PLACEHOLDERS:
#%user% - The username
#%id% - The user ID
#%msg% - The Message
ingameDiscordMsg = "§6[§5DISC§6]§r <%user%> %msg%"
#Enable removal of color codes from discord to chat?
preventMcColorCodes = false
#Channel description while the server is offline
descriptionOffline = "Smooth Circles Server is Offline!"
#Should /me output be sent to discord?
enableMeOutput = true
#Message sent when unignoring Discord messages
msgIgnoreUnignore = "You are no longer ignoring Discord messages!"
#Should tamed entity death be visible in discord?
tamedDeathEnabled = false
#PLACEHOLDERS:
#%player% - The player´s name
msgPlayerJoin = "%player% joined Smooth Circles"
#Supports MulitLined messages using \n
#PLACEHOLDERS:
#%player% - The player´s name
#%name% - The advancement name
#%desc% - The advancement description
msgAdvancement = "%player% just gained the advancement %name%\n_%desc%_"
#Message sent when ignoring Discord messages
msgIgnoreIgnore = "You are now ignoring Discord messages!"

#Configuration for built-in discord commands
[dc-commands]
#The Role ID of your Admin Role
adminRoleId = "0"
#The header for 'list'
#PLACEHOLDERS:
#%amount% - The amount of players online
msgListHeader = "There are %amount% players online:"
#Enable help command?
#Disabling also removes response when you entered an invalid command
#Requires server restart
enableHelpCommand = true
#You MUST op this UUID in the ops.txt or many commands won't work!!
senderUUID = "8d8982a5-8cf9-4604-8feb-3dd5ee1f83a3"
#The prefix of the commands like list
prefix = "/"
#Header of the help command
helpHeader = "Your available commands in this channel:"
#Message if a player provides too many arguments
msgTooManyArgs = "Too many arguments"
#Enable the list command in discord
#Requires server restart
enableListCommand = false
#The header for 'list' when one player is online
msgListOne = "There is 1 player online:"
#Add your Custom commands to this JSON
#You can copy-paste it to https://jsoneditoronline.org Make sure when pasting here, that the json is NOT mulitlined.
#You can click on "Compact JSON Data" on the website
#NOTE: The JSON string must be escaped. You can use this website to escape or unescape: https://www.freeformatter.com/java-dotnet-escape.html
#NOTE 2: You MUST op the uuid set at SENDER_UUID in the ops.txt !!!
#
#mcCommand - The command to execute on the server
#adminOnly - True: Only allows users with the Admin role to use this command. False: @everyone can use the command
#description - Description shown in /help
#aliases - Aliases for the command in a string array
#useArgs - Shows argument text after the command
#argText - Defines custom arg text. Default is
#channelIDs - Allows you to set specific text channels outside of the server channel to use this command (make it an string array), Set to ["00"] to allow from all channels
jsonCommands = "{"kick":{"adminOnly":true,"mcCommand":"kick","description":"Kicks a player from the server","useArgs":true,"argText":"\u003cplayer\u003e [reason]"},"stop":{"adminOnly":true,"mcCommand":"stop","description":"Stops the server","aliases":["shutdown"],"useArgs":false},"kill":{"adminOnly":true,"mcCommand":"kill","description":"Kills a player","useArgs":true,"argText":"\u003cplayer\u003e"},"tps":{"adminOnly":false,"mcCommand":"forge tps","description":"Displays TPS","useArgs":false}}"
#Set to true to enable the "Unknown Command" message in all channels
enableUnknownCommandEverywhere = false
#Custom Channel ID list for the list command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
helpCmdChannel = "0"
#Set to false to completely disable the "Unknown Command" message
enableUnknownCommandMsg = true
#Message if a player can not be found
#PLACEHOLDERS:
#%player% - The player´s name
msgPlayerNotFound = "Can not find player "%player%""
#Message sent when user does not have permission to run a command
msgNoPermission = "You don´t have permission to execute this command!"
#The message for 'list' when no player is online
msgListEmpty = "There is no player online..."
#Message if a player provides less arguments than required
msgNotEnoughArgs = "Not enough arguments"
#Message sent when an invalid command was typed
#PLACEHOLDERS:
#%prefix% - Command prefix
msgUnknownCommand = "Unknown command, try %prefix%help for a list of commands"
#Enable the iptime command in discord
#Requires server restart
enableUptimeCommand = false

#Configurate the /discord command useable ingame
[mc-command]
#The url to open when clicking the /discord command text
dcCmdURL = "http://discord.gg/013CQalai2tA7OPui"
#The message displayed when typing /discord in the server chat
dcCmdMsg = "Join our discord! http://discord.gg/013CQalai2tA7OPui"
#The message shown when hovering the /discord command message
dcCmdMsgHover = "Click to open the invite url"
#Enable the /discord command?
dcCmdEnabled = true

#Configure Advanced features like moving specific message types to different channels
[advanced]
#Custom channel for description
#Leave empty to use default channel
channelDescriptionID = ""
#Custom channel ID for server specific messages (like Join/leave)
#Leave empty to use default channel
serverChannelID = ""
#Custom channel ID for death messages
#Leave empty to use default channel
deathChannelID = ""
#Custom channel where messages get sent to minecraft
#Leave empty to use default channel
chatInputID = ""
#Custom channel for for ingame messages
#Leave empty to use default channel
chatOutputID = ""`

Crash report if available (use https://paste.dimdev.org)

  • N/A

Additional info

Fully expect this to be a PEBKAC issue, but I've never had an issue joining any other MC server/bots so at a loss.

commented

Guess it was a PEBKAC error. It wouldn't work until I added the bot to the channel permissions and set all the specific perms to true. None of the other handful of bots I use required that, but it works now.