ErdbeerbaerLP / DiscordIntegration-Forge

Forge version of the Discord Integration mod
https://modrinth.com/plugin/dcintegration
MIT License
100 stars 55 forks source link

[BUG] Server starts, but the bot will not start. #215

Closed bIankIess closed 3 years ago

bIankIess commented 3 years ago

-The bot will not start even though the server is fully up. Version

Platform

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=Minecraft with %online% players

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

    # Insert your Bot Token here!
    # DO NOT SHARE IT WITH ANYONE!
    S:BOT_TOKEN=Sorry mate can't see

    # The channel ID where the bot will be working in
    S:CHANNEL_ID=Sorry mate can't see

    # 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=Sorry mate can't see

    # Custom channel where messages get sent to minecraft
    # Leave empty to use default channel
    S:CHAT_INPUT_ID=Sorry mate can't see

    # Custom channel for ingame messages
    # Leave empty to use default channel
    S:CHAT_OUTPUT_ID=Sorry mate can't see

    # Custom channel ID for death messages
    # Leave empty to use default channel
    S:DEATH_CHANNEL_ID=Sorry mate can't see

    # Custom channel ID for FTB Utilities messages
    # Leave empty to use default channel
    S:FTB_UTILITIES_CHANNEL_ID=Sorry mate can't see

    # Custom channel ID for server specific messages (like Join/leave)
    # Leave empty to use default channel
    S:SERVER_CHANNEL_ID=Sorry mate can't see

    # Custom channel ID for Votifier messages
    # Leave empty to use default channel
    S:VOTIFIER_CHANNEL_ID=Sorry mate can't see
}

##########################################################################################################
# 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! We are taking a break from the project

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

    # 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: Who is trying to sabotage the project?

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

    # 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 Up The Project...

    # This message will be sent when the server was stopped
    S:SERVER_STOPPED_MSG=Server Stopped! Go take a break from the project!

    # 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=0

    # 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 right now due to a break...

    # 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
}

}

leonx132 commented 3 years ago

this get a fix yet im having the same issue

ErdbeerbaerLP commented 3 years ago

Try with 2.2.0. If this still happens re-open