Discord Integration Forge

Discord Integration Forge

935k Downloads

No sign of chat being relayed or commands being properly recognized

JMBarber opened this issue · 3 comments

commented

What happened?
As the title says. Once the Minecraft server has started, the bot user can be seen to log in with a green circle and update its status message - however, it remains unchanged as players log in and out:
Screenshot 2020-11-16 180419
Typing into Minecraft game chat and into the Discord channel produces no response on either end, unless a Discord message begins with a forward-slash character. In that case, it acts like an unrecognized command:
Screenshot 2020-11-16 180452
Note that I do have the role specified in the config file.

What should happen?
I assume I'd be able to see chat relayed between Discord and Minecraft in both directions.

Steps to reproduce
Follow the instructions in https://github.com/ErdbeerbaerLP/Discord-Chat-Integration/wiki/Quick-Setup using a modded Minecraft server hosted on Nitrado. Curseforge/Twitch was used to add this mod to a custom pack.

Version
-1.12.2

Mod version 1.1.19

Config file

`# Configuration file

general {

##########################################################################################################
# general config
#--------------------------------------------------------------------------------------------------------#
# General bot Configuration
##########################################################################################################

"general config" {
    # The Name of the Game
    # 
    # PLACEHOLDERS:
    # %online% - Online Players
    # %max% - Maximum Player Amount
    S:BOT_GAME_NAME=Modded Minecraft with %online% players

    # Valid values:
    # WATCHING
    # PLAYING
    # LISTENING
    # DISABLED
    S:BOT_GAME_TYPE=PLAYING

    # Insert your Bot Token here!
    # DO NOT SHARE IT WITH ANYONE!
    S:BOT_TOKEN=_____________________________________

    # The channel ID where the bot will be working in
    S:CHANNEL_ID=575006113263779850

    # When description updates are enabled, how long should it wait before updating? (in milliseconds)
    # Setting this too low can cause RateLimits from discord
    I:DESCRIPTION_UPDATE_DELAY=500

    # Wether or not the Bot should modify the channel description
    B:MODIFY_CHANNEL_DESCRIPTRION=true

    # If you think the update check is annoying disable this
    B:UPDATE_CHECK=true
}

##########################################################################################################
# advanced
#--------------------------------------------------------------------------------------------------------#
# Configure Advanced features like moving specific message types to different channels
##########################################################################################################

advanced {
    # Custom channel for description
    # Leave empty to use default channel
    S:CHANNEL_DESCRIPTION_ID=

    # Custom channel where messages get sent to minecraft
    # Leave empty to use default channel
    S:CHAT_INPUT_ID=

    # Custom channel for ingame messages
    # Leave empty to use default channel
    S:CHAT_OUTPUT_ID=

    # Custom channel ID for death messages
    # Leave empty to use default channel
    S:DEATH_CHANNEL_ID=

    # Custom channel ID for FTB Utilities messages
    # Leave empty to use default channel
    S:FTB_UTILITIES_CHANNEL_ID=

    # Custom channel ID for server specific messages (like Join/leave)
    # Leave empty to use default channel
    S:SERVER_CHANNEL_ID=

    # Custom channel ID for Votifier messages
    # Leave empty to use default channel
    S:VOTIFIER_CHANNEL_ID=
}

##########################################################################################################
# webhook
#--------------------------------------------------------------------------------------------------------#
# Webhook configuration
##########################################################################################################

webhook {
    # Wether or not the bot should use a webhook (it will create one)
    B:BOT_WEBHOOK=false

    # The avatar to be used for server messages
    S:SERVER_AVATAR=https://raw.githubusercontent.com/ErdbeerbaerLP/Discord-Chat-Integration/master/images/srv.png

    # The username of the server
    S:SERVER_NAME=Server
}

##########################################################################################################
# messages
#--------------------------------------------------------------------------------------------------------#
# Customize messages of this mod
##########################################################################################################

messages {
    # 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
    # %days% - The amount of days the server has been online
    # %hours% - The amount of hours the server has been online
    # %minutes% - The amount of minutes the server has been online
    # %seconds% - The amount of seconds the server has been online
    S:CHANNEL_DESCRIPTION=%motd% (%online%/%max%) | %tps% TPS | Uptime: %uptime%

    # Channel description while the server is offline
    S:CHANNEL_DESCRIPTION_OFFLINE=Server is Offline!

    # Channel description while the server is starting
    S:CHANNEL_DESCRIPTION_STARTING=Starting...

    # Set this to true if you don't want to have Join / Leave messages being sent
    B:DISABLE_JOIN_LEAVE_MESSAGES=false

    # Disable removal of color codes from chat to discord?
    B:DISCORD_COLOR_CODES=false

    # Should /me output be sent to discord?
    B:ENABLE_ME_OUTPUT=true

    # Should /say output be sent to discord?
    B:ENABLE_SAY_OUTPUT=true

    # 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
    S:INGAME_DISCORD_MSG=§6[§5DISCORD§6]§r <%user%> %msg%

    # Supports MulitLined messages using \n
    # PLACEHOLDERS:
    # %player% - The player´s name
    # %name% - The advancement name
    # %desc% - The advancement description
    S:PLAYER_ADVANCEMENT_MSG=%player% just gained the advancement **%name%**\n_%desc%_

    # Chat message when webhook is disabled
    # PLACEHOLDERS:
    # %player% - The player´s name
    # %msg% - The chat message
    S:PLAYER_CHAT_MSG=%player%: %msg%

    # PLACEHOLDERS:
    # %player% - The player´s name
    # %msg% - The death message
    S:PLAYER_DEATH_MSG=%player% %msg%

    # PLACEHOLDERS:
    # %player% - The player´s name
    S:PLAYER_JOINED_MSG=%player% joined

    # PLACEHOLDERS:
    # %player% - The player´s name
    S:PLAYER_LEFT_MSG=%player% left

    # PLACEHOLDERS:
    # %player% - The player´s name
    S:PLAYER_TIMEOUT_MSG=%player% timed out!

    # Enable removal of color codes from discord to chat?
    B:PREVENT_MC_COLOR_CODES=false

    # The message to print to discord when it was possible to detect a server crash
    # Will also be used in the channel description
    S:SERVER_CRASHED_MSG=Server Crash Detected :thinking:

    # This message will edited in / sent when the server finished starting
    S:SERVER_STARTED_MSG=Server Started!

    # Message to show while the server is starting
    # This will be edited to SERVER_STARTED_MSG when webhook is false
    S:SERVER_STARTING_MSG=Server Starting...

    # This message will be sent when the server was stopped
    S:SERVER_STOPPED_MSG=Server Stopped!

    # Should tamed entity death be visible in discord?
    B:TAMED_DEATH_ENABLED=false

    # 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
    S:UPTIME_FORMAT=dd 'days' HH 'hours' mm 'minutes' ss 'seconds'
}

##########################################################################################################
# commands
#--------------------------------------------------------------------------------------------------------#
# Configuration for built-in discord commands
##########################################################################################################

commands {
    # The Role ID of your Admin Role
    S:ADMIN_ROLE_ID=586614775799087114

    # The prefix of the commands like list
    S:CMD_PREFIX=/

    # Enable the /help command in discord
    # Disabling also removes response when you entered an invalid command
    # Requires server restart
    B:ENABLE_HELP_COMMAND=true

    # Enable the /list command in discord
    # Requires server restart
    B:ENABLE_LIST_COMMAND=true

    # Set to false to completely disable the "Unknown Command" message
    B:ENABLE_UNKNOWN_COMMAND_MESSAGE=true

    # Set to true to enable the "Unknown Command" message in all channels
    B:ENABLE_UNKNOWN_COMMAND_MESSAGE_EVERYWHERE=false

    # Enable the /uptime command in discord
    # Requires server restart
    B:ENABLE_UPTIME_COMMAND=true

    # Custom Channel ID for the help command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
    S:HELP_CMD_CHANNEL_ID=00

    # Header of the help command
    S:HELP_HEADER=Your available commands in this channel:

    # A list of blacklisted modids
    # Adding one will prevent the mod to send messages to discord using forges IMC system
    S:IMC_MOD_ID_BLACKLIST <
        examplemodid
     >

    # 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: 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 <args>
    # 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
    S:JSON_COMMANDS={"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}}

    # Custom Channel ID for the list command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
    S:LIST_CMD_CHANNEL_ID=0

    # The message for 'list' when no player is online
    S:MSG_LIST_EMPTY=There is no player online...

    # The header for 'list'
    # PLACEHOLDERS:
    # %amount% - The amount of players online
    S:MSG_LIST_HEADER=There are %amount% players online:

    # The message for 'list' when one is online
    S:MSG_LIST_ONE=There is 1 player online:

    # Message sent when user does not have permission to run a command
    S:MSG_NO_PERMISSION=You don´t have permission to execute this command!

    # Message if a player provides too many arguments
    # PLACEHOLDERS:
    # %player% - The player´s name
    S:MSG_PLAYER_NOT_FOUND=Can not find player "%player%"

    # Message sent when an invalid command was typed
    # PLACEHOLDERS:
    # %prefix% - Command prefix
    S:MSG_UNKNOWN_COMMAND=Unknown command, try `%prefix%help` for a list of commands

    # You MUST op this UUID in the ops.txt or many commands won´t work!!
    S:SENDER_UUID=8d8982a5-8cf9-4604-8feb-3dd5ee1f83a3

    # Custom Channel ID for the uptime command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
    S:UPTIME_CMD_CHANNEL_ID=0
}

##########################################################################################################
# discord_command
#--------------------------------------------------------------------------------------------------------#
# Configurate the /discord command useable ingame
##########################################################################################################

discord_command {
    # The message shown when hovering the /discord command message
    S:HOVER=Click to open the invite url

    # Message sent when ignoring discord messages
    S:IGNORECMD_IGNORE=You are now ignoring Discord messages!

    # Message sent when unignoring discord messages
    S:IGNORECMD_UNIGNORE=You are no longer ignoring Discord messages!

    # The message displayed when typing /discord in the server chat
    S:MESSAGE=Join our discord! http://discord.gg/myserver

    # The url to open when clicking the /discord command text
    S:URL=http://discord.gg/myserver
}

##########################################################################################################
# ftb utilities
#--------------------------------------------------------------------------------------------------------#
# Theese config values will only be used when FTB Utilities is installed!
##########################################################################################################

"ftb utilities" {
    # Format name like in chat?
    B:CHAT_FORMATTING=true

    # Format of the AFK message
    # PLACEHOLDERS:
    # %player% - The player´s name
    S:DISCORD_AFK_MSG=%player% is now AFK

    # Print afk messages in discord
    B:DISCORD_AFK_MSG_ENABLED=true

    # Format of the no longer AFK message
    # PLACEHOLDERS:
    # %player% - The player´s name
    S:DISCORD_AFK_MSG_END=%player% is no longer AFK

    # URL of the FTB Avatar icon
    S:FTB_AVATAR_ICON=https://raw.githubusercontent.com/ErdbeerbaerLP/Discord-Chat-Integration/master/images/ftb.png

    # Format of the shutdown message printed when the server will shutdown/restart in 10 seconds
    S:SHUTDOWN_MSG_10SECONDS=Server stopping in 10 seconds!

    # Format of the shutdown message printed when the server will shutdown/restart in 2 minutes
    S:SHUTDOWN_MSG_2MINUTES=Server stopping in 2 minutes!
}

##########################################################################################################
# votifier
#--------------------------------------------------------------------------------------------------------#
# Configure votifier integration here
##########################################################################################################

votifier {
    # URL of the webhook avatar image
    S:AVATAR_URL=https://media.forgecdn.net/avatars/158/149/636650534005921456.png

    # Should votifier messages be sent to discord?
    B:ENABLED=true

    # The message format of the votifier message
    # 
    # PLACEHOLDERS:
    # %player% - The player´s name
    # %site% - The name of the vote site
    # %addr% - (IP) Address of the site
    S:MESSAGE=%player% voted on %site%

    # Name of the webhook author
    S:NAME=Votifier
}

}`

commented

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

commented

Try if 1.1.18 works (I removed 1.1.19 from curseforge because of more new bugs than fixed ones)

commented

So far, I'm still running into the same problem. Would another copypaste of the config help? (I still haven't changed anything besides the token, channel ID, and admin role ID.