Closed Kaye-Potassium closed 3 years ago
You just leaked the bot token. CHANGE / REGENERATE IT IMMEDIATELY! If you don't, others can do stuff as your bot with it's permissions! Editing it out is too late, as you can view edit history.
About the bug, i will be investigating it in a few hours
That was my bad, I edited it out weird but it's all sorted. Thanks again.
ah. it is an config issue...
You put the token like botToken = abcdxyz
It should actually be botToken = "abcdxyz"
Fixing that should get the mod to load
What happened? The server won't start because of what I assume to be an issue with the Bot.
What should happen? The server starts up and the bots turns on and works.
Steps to reproduce Start up the server
Version
Platform
Mod version: 2.2.0
Config file `# General options for the bot [general]
The channel ID where the bot will be working in
botChannel = "854531918779777094"
The bot's status message
PLACEHOLDERS:
%online% - Online Players
%max% - Maximum Player Amount
botStatusName = "%online% players Online"
Type of the bot's status
Allowed Values: DISABLED,PLAYING,WATCHING,LISTENING,STREAMING
botStatusType = "PLAYING"
URL of the bot's stream when using the status type 'STREAMING'
Has to start with https://twitch.tv/ or https://www.youtube.com/watch?v=
streamingURL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Enable checking for updates?
Notification will be shown after every server start in log when update is available
enableUpdateChecker = true
The minimum release type for the update checker to notify
Allowed values: release, beta, alpha
updateCheckerMinimumReleaseType = "release"
Configuration options for commands
[commands]
The Role IDs of your Admin Roles
Now supports multiple roles which can access admin commands
adminRoleIDs = [830951266662219806]
The prefix of the commands usable in discord
prefix = "/"
Set to true to require an space after the prefix (e.g. 'mc help')
spaceAfterPrefix = false
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
mcCommand - The command to execute on the server. use %args% to place the arguments inside of the command
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 in the help 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
customCommandJSON = "{\"kick\":{\"adminOnly\":true,\"mcCommand\":\"kick\",\"description\":\"Kicks a player from the server\",\"useArgs\":true,\"argText\":\" [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\":\"\"}}"
You must op this UUID in the ops.txt or some custom commands won't work!
senderUUID = "8d8982a5-8cf9-4604-8feb-3dd5ee1f83a3"
Enable help command?
Disabling also removes response when you entered an invalid command
Requires server restart
helpCmdEnabled = true
Enable the list command in discord
Requires server restart
listCmdEnabled = true
Enable the uptime command in discord
Requires server restart
uptimeCmdEnabled = true
Set to false to completely disable the "Unknown Command" message
showUnknownCommandMessage = true
Set to true to enable the "Unknown Command" message in all channels
showUnknownCommandEverywhere = false
Toggle some message related features
[messages]
Enable formatting conversion (Markdown <==> Minecraft)
convertCodes = true
Send formatting codes from mc chat to discord
Has no effect when markdown <==> Minecraft is enabled
formattingCodesToDiscord = false
Should /say output be sent to discord?
sendOnSayCommand = true
Should /me output be sent to discord?
sendOnMeCommand = true
When an /say command's message starts with this prefix, it will not be sent to discord
sayCommandIgnoredPrefix = "§4§6§k§r"
Should tamed entity death be visible in discord?
sendDeathMessagesForTamedAnimals = false
Advanced options
[advanced]
Custom channel ID for server specific messages (like Join/leave)
Leave 'default' to use default channel
serverChannelID = "831610931405389874"
Custom channel ID for death messages
Leave 'default' to use default channel
deathsChannelID = "832330956983369728"
Custom channel for for ingame messages
Leave 'default' to use default channel
chatOutputChannelID = "831920446400102481"
Custom channel where messages get sent to minecraft
Leave 'default' to use default channel
chatInputChannelID = "831920446400102481"
Custom Channel ID list for the help command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
helpCmdChannelIDs = [ "0" ]
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
listCmdChannelIDs = [ "0" ]
Custom Channel ID list for the uptime command. Set to 00 to allow usage from everywhere and to 0 to allow usage from the bots default channel
uptimeCmdChannelIDs = [ "0" ]
Config options which only have an effect when using forge
[forgeSpecific]
A list of blacklisted modids
Adding one will prevent the mod to send messages to discord using forges IMC system
IMC_modIdBlacklist = [ "examplemod" ]
Show item information, which is visible on hover ingame, as embed in discord?
sendItemInfo = true
Configuration for linking
[linking]
Should discord linking be enabled?
If whitelist is on, this can NOT be disabled
DOES NOT WORK IN OFFLINE MODE!
enableLinking = true
Role ID of an role an player should get when he links his discord account
Leave as 0 to disable
linkedRoleID = "0"
Enable discord based whitelist?
This will override the link config!
To whitelist use the whitelist command in the bot DMs
whitelistMode = false
Adding Role IDs here will require the players to have at least ONE of these roles to link account
requiredRoles = [ ]
Webhook configuration
[webhook]
Whether or not the bot should use a webhook (it will create one)
enable = false
The avatar to be used for server messages
serverAvatarURL = "https://raw.githubusercontent.com/ErdbeerbaerLP/Discord-Chat-Integration/master/images/srv.png"
The name to be used for server messages
serverName = "Minecraft Server"
The URL where the player avatar gets fetched from
PLACEHOLDERS:
%uuid% - Returns the player's UUID with dashes
%uuid_dashless% - Returns the player's UUID without dashes
%name% - Returns the player's name
%randomUUID% - Returns an random UUID which can be used to prevent discord cache
playerAvatarURL = "https://minotar.net/avatar/%uuid%?randomuuid=%randomUUID%"
Allows you to modify and translate most of the messages this bot will send
[localization]
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
ingame_discordMessage = "§6[§5DISCORD§6]§r <%user%> %msg%"
This is what will be displayed ingame when someone sends an reply into the bot's channel
PLACEHOLDERS:
%user% - The username
%id% - The user ID
%msg% - The reply message
%ruser% - The username of the message that got the reply
%rmsg% - The replied message
ingame_discordReplyMessage = "§6[§5DISCORD§6]§r §a%user%§r in reply to §3%ruser%§r: %msg%"
Message shown when hovering over the username of an discord message
PLACEHOLDERS:
%user% - The username/nickname (Someone123)
%user#tag% - The username with tag (someone#0001)
%id% - The user ID
NOTE: using an @ here can cause ping sounds ingame
discordUserHover = "§3Discord User %user#tag%\n§aClick to mention"
This message will edited in / sent when the server finished starting
serverStarted = "Server Started!"
Message to show while the server is starting
This will be edited to SERVER_STARTED_MSG when webhook is false
serverStarting = "Server Starting..."
This message will be sent when the server was stopped
serverStopped = "Server Stopped!"
The message to print to discord when it was possible to detect a server crash
serverCrash = "Server Crash Detected :thinking:"
Gets sent when an player joins
PLACEHOLDERS:
%player% - The player's name
playerJoin = "%player% joined"
Gets sent when an player leaves
PLACEHOLDERS:
%player% - The player's name
playerLeave = "%player% left"
Gets sent when an player dies
PLACEHOLDERS:
%player% - The player's name
%msg% - The death message
playerDeath = "%player% %msg%"
Message sent instead of playerLeave, when the player times out
PLACEHOLDERS:
%player% - The player's name
playerTimeout = "%player% timed out!"
Gets sent when an player finishes an advancement
Supports MulitLined messages using \n
PLACEHOLDERS:
%player% - The player's name
%name% - The advancement name
%desc% - The advancement description
advancementMessage = "%player% just made the advancement %name%\n%desc%"
The chat message in discord, sent from an player in-game
PLACEHOLDERS:
%player% - The player's name
%msg% - The chat message
discordChatMessage = "%player%: %msg%"
Sent to a player when someone reacts to his messages
PLACEHOLDERS:
%name% - (Nick-)Name of the user who reacted (format: 'SomeNickName')
%name2% - Name of the user who reacted with discord discriminator (format: 'SomeName#0123')
%msg% - Content of the message which got the reaction
%emote% - The reacted emote
reactionMessage = "§6[§5DISCORD§6]§r§7 %name% reacted to your message \"§9%msg%§7\" with '%emote%'"
Configuration for the in-game command '/discord'
[ingameCommand]
Enable the /discord command to show an custom message with invite URL?
enabled = true
The message displayed when typing /discord in the server chat
message = "Join our discord! http://discord.gg/myserver"
The message shown when hovering the /discord command message
hoverMessage = "Click to open the invite url"
The url to open when clicking the /discord command text
inviteURL = "http://discord.gg/myserver"
The command log channel is an channel where every command execution gets logged
[commandLog]
Channel ID for the command log channel
Leave 0 to disable
channelID = "0"
The format of the log messages
PLACEHOLDERS:
%sender% - The name of the Command Source
%cmd% - executed command (e.g. "say Hello World"
%cmd-no-args% - Command without arguments (e.g. "say"
message = "%sender% executed command
%cmd%
"A list of commands that should NOT be logged
ignoredCommands = [ "list", "help", "?" ]
Configure votifier integration here
(Spigot only)
[votifier]
Should votifier messages be sent to discord?
enabled = true
Custom channel ID for Votifier messages
Leave 'default' to use default channel
votifierChannelID = "default"
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
message = ":ballot_box: %player% just voted on %site%"
Name of the webhook title
name = "Votifier"
URL of the webhook avatar image
avatarURL = "https://www.cubecraft.net/attachments/bkjvmqn-png.126824/"
Configure Dynmap integration here
[dynmap]
The message format of the message forwarded to discord
PLACEHOLDERS:
%sender% - The sender´s name
%msg% - The Message
dcMessage = "<%sender%> %msg%"
Custom channel ID for dynmap chat
Leave 'default' to use default channel
dynmapChannelID = "default"
Name of the webhook title
name = "Dynmap Web-Chat"
URL of the webhook avatar image
avatarURL = "https://styles.redditmedia.com/t5_2kl3ct/styles/communityIcon_am5zopqnjhs41.png"
The name format of the message forwarded to the dynmap webchat
PLACEHOLDERS:
%name% - The discord name of the sender (including nickname)
%name#tag% - The discord name with tag of the sender (without nickname)
webName = "%name% (discord)"
Name shown in discord when no name was specified on the website
unnamed = "Unnamed"
Configure some plugin-specific BStats settings here
Everything can be seen here: https://bstats.org/plugin/bukkit/DiscordIntegration/9765
Only applies to spigot as there is no BStats for Forge
[bstats]
Allow sending of installed addon stats (Name and version of installed addons)
sendAddonStats = true
Settings for servers running as Bungeecord-suberver
[bungee]
Set this to true if the server is running as an subserver of an bungeecord network and therefore needs to be in offline mode
Setting this will force account linking in offline mode
Do NOT use for actual offline mode servers, as this will break the linking feature because of the UUIDs!
Currently no support for floodgate running on bungee
isBehindBungee = false`
https://pastebin.com/jyAuHjr3
Additional info