discord update

This commit is contained in:
2023-09-09 20:46:14 +02:00
parent 87e7db882e
commit 5bdc2802eb

View File

@@ -1,54 +1,80 @@
#General Mod Config #General Mod Config
[general] [general]
#The Token of the Bot to use. KEEP THIS PRIVATE
botToken = "MTAyNTA3NTM2NzI4OTAyODcxOA.GpzZpx.U7y1ffjLg9B1zXKeSFpRy249Cktc2ofvmeBWRE"
#Should the bot be enabled or not #Should the bot be enabled or not
enabled = true enabled = true
#Should debug logging be enabled? WARNING: THIS CAN SPAM YOUR LOG! #Should debug logging be enabled? WARNING: THIS CAN SPAM YOUR LOG!
debugging = false debugging = false
#How quickly the bot status should update
activityUpdateInterval = 30
#The prefix to use for bot commands. Example: ~players
botPrefix = "~"
#Should the bot be allowed to whitelist/un-whitelist players. Whitelisting needs to be enabled on your server as well #Should the bot be allowed to whitelist/un-whitelist players. Whitelisting needs to be enabled on your server as well
whitelisting = false whitelisting = false
#Should the bot be allowed to whitelist/un-whitelist players in OFFLINE mode. Whitelisting needs to be enabled on your server as well
offlinewhitelist = false
#Automatically link Minecraft and Discord Accounts when a user is whitelisted
linkedWhitelist = false
#Should only admins be allowed to whitelist players #Should only admins be allowed to whitelist players
onlyAdminsWhitelist = true onlyAdminsWhitelist = false
#Do not add Playing. A status to display on the bot. You can use %players% and %maxplayers% to show the number of players on the server #If a role ID (or name) is defined here, it will be assigned to players when they are whitelisted
botStatus = "Minecraft" autoWhitelistRole = ""
#A topic for the Chat Relay channel. You can use %player%, %maxplayers%, %uptime%, %tps% or just leave it empty. #If a role ID (or name) is defined here, it will be assigned to players when their MC and Discord accounts are linked
channelTopic = "Playing Minecraft with %players%/%maxplayers% people | Uptime: %uptime%" linkedRole = ""
#Should the /discord command be enabled in game
inviteCommandEnabled = false
#Discord Invite Link used by the in-game invite command #Discord Invite Link used by the in-game invite command
inviteLink = "" inviteLink = ""
#Internal version control. DO NOT TOUCH! #Internal version control. DO NOT TOUCH!
configVersion = 10 configVersion = 24
#Config specific to the discord bot
[botConfig]
#The Token of the Bot to use. KEEP THIS PRIVATE. See https://readme.firstdarkdev.xyz/simple-discord-link/initial-setup/ to find this
botToken = "MTAyNTA3NTM2NzI4OTAyODcxOA.GpzZpx.U7y1ffjLg9B1zXKeSFpRy249Cktc2ofvmeBWRE"
#How quickly the bot status should update
activityUpdateInterval = 30
#If a role ID (or name) is defined here, only members with this role can use Staff Functions. Otherwise, it defaults back to admin/kick perms
staffRole = ""
#Should the bot use / commands. NOTE: THIS MAY TAKE UP TO 24 HOURS TO SHOW UP IN YOUR DISCORD
slashCommands = false
#The prefix to use for bot commands. Example: ~players. THIS HAS NO EFFECT WHEN USING SLASH COMMANDS
# - WARNING: TEXT COMMANDS HAVE BEEN DEPRECATED, USE SLASH COMMANDS INSTEAD!!
botPrefix = "~"
#Do not add Playing. A status to display on the bot. You can use %players% and %maxplayers% to show the number of players on the server
botStatus = "Minecraft"
#The type of the status displayed on the bot. Valid entries are: PLAYING, STREAMING, WATCHING, LISTENING
botStatusType = "PLAYING"
#The URL that will be used when the "botStatusType" is set to "STREAMING", required to display as "streaming".
botStatusStreamingURL = "https://twitch.tv/twitch"
#Should the bot update the topic of your chat channel automatically
doTopicUpdates = true
#A topic for the Chat Relay channel. You can use %player%, %maxplayers%, %uptime% or just leave it empty.
channelTopic = "Playing Minecraft with %players%/%maxplayers% people | Uptime: %uptime%"
#Config relating to the discord channels to use with the mod
[channels]
#The ID of the channel to post in and relay messages from. This is still needed, even in webhook mode
chatChannelID = 0
#If this ID is set, event messages will be posted in this channel instead of the chat channel
eventsChannelID = 0
#If this ID is set, console messages sent after the bot started will be relayed here, and you can execute minecraft commands here
consoleChannelID = 0
#Webhook Config #Webhook Config
[webhookConfig] [webhooks]
#Should webhook messages be used #Should webhook messages be used
enabled = false enabled = false
#The URL of the channel webhook to use for Chat Messages #The URL of the channel webhook to use for Chat Messages
webhookurl = "https://discord.com/api/webhooks/1025293777679679508/pXyyCK24gRdIrr99b0gsmkHd08QUqBa3SJvGVRAy3O9_1COHXzdF1U4VHt7RkLlvzjkQ" chatWebhook = "https://discord.com/api/webhooks/1025293777679679508/pXyyCK24gRdIrr99b0gsmkHd08QUqBa3SJvGVRAy3O9_1COHXzdF1U4VHt7RkLlvzjkQ"
#The URL of the channel webhook to use for Server Messages Messages #The URL of the channel webhook to use for Server Messages
webhookurlLogs = "https://discord.com/api/webhooks/1025293466776911933/PqQ4M8cF-aJWUi1cKIToLtTzVW3OwJDstDDzLkQppkHk2q9KQ2XVmbv3HSw7lSjeLcvH" eventsWebhook = "https://discord.com/api/webhooks/1025293466776911933/PqQ4M8cF-aJWUi1cKIToLtTzVW3OwJDstDDzLkQppkHk2q9KQ2XVmbv3HSw7lSjeLcvH"
#The URL of the channel webhook to use for Console Messages
consoleWebhook = "https://discord.com/api/webhooks/1025293466776911933/PqQ4M8cF-aJWUi1cKIToLtTzVW3OwJDstDDzLkQppkHk2q9KQ2XVmbv3HSw7lSjeLcvH"
#A DIRECT link to an image to use as the avatar for server messages. Also used for embeds #A DIRECT link to an image to use as the avatar for server messages. Also used for embeds
serverAvatar = "" serverAvatar = ""
#The name to display for Server messages when using Webhooks #The name to display for Server messages when using Webhooks
serverName = "PatataPack Server" serverName = "PatataPack Server"
#Chat Config #Chat Config
[chatConfig] [chat]
#The ID of the channel to post in and relay messages from. This is still needed, even in webhook mode
channelID = 1025292808665452586
#If this ID is set, event messages will be posted in this channel instead of the chat channel
logChannelID = 1024353263811833928
#The type of image to use as the player icon in messages. Valid entries are: AVATAR, HEAD, BODY, COMBO #The type of image to use as the player icon in messages. Valid entries are: AVATAR, HEAD, BODY, COMBO
playerAvatarType = "COMBO" playerAvatarType = "HEAD"
#Should embeds be used instead of plain text messages for Chat Messages
useEmbeds = true
#Should embeds be used instead of plain text messages for Log Messages
useEmbedsLog = true
#Prefix to add to Minecraft when a message is relayed from Discord. Supports MC formatting. Use %user% for the Discord Username #Prefix to add to Minecraft when a message is relayed from Discord. Supports MC formatting. Use %user% for the Discord Username
mcPrefix = "§e[Discord]§r %user%: " mcPrefix = "§e[Discord]§r %user%: "
#Should messages from bots be relayed #Should messages from bots be relayed
@@ -73,13 +99,15 @@
sendSayCommand = true sendSayCommand = true
#Should commands be posted to discord #Should commands be posted to discord
broadcastCommands = true broadcastCommands = true
#Should Tell Raw messages be posted #Commands that should not be broadcasted to discord
sendTellRaw = true ignoredCommands = ["particle", "login"]
#Should the ~discord command be enabled
inviteCommandEnabled = false
#Change the contents of certain event messages #Change the contents of certain event messages
[messages] [messages]
#Convert Discord to MC, and MC to Discord Formatting
formatting = true
#Should console messages be sent to the Console Channel
sendConsoleMessages = true
#Server Starting Message #Server Starting Message
serverStarting = "Arrancando el servidor / Server is starting..." serverStarting = "Arrancando el servidor / Server is starting..."
#Server Started Message #Server Started Message
@@ -89,24 +117,79 @@
#Server Stopped Message #Server Stopped Message
serverStopped = "El servidor ha parado / Server has stopped..." serverStopped = "El servidor ha parado / Server has stopped..."
#Player Joined Message. Use %player% to display the player name #Player Joined Message. Use %player% to display the player name
playerJoined = "%player% se ha unido al servidor / has joined the server!" playerJoined = "*%player% has joined the server!*"
#Player Left Message. Use %player% to display the player name #Player Left Message. Use %player% to display the player name
playerLeft = "%player% se ha ido! / has left the server!" playerLeft = "*%player% has left the server!*"
#Achievement Messages. Available variables: %player%, %title%, %description% #Achievement Messages. Available variables: %player%, %title%, %description%
achievements = "%player% has made the advancement [%title%]: %description%" achievements = "*%player% has made the advancement [%title%]: %description%*"
#Chat Messages. Available variables: %player%, %message% #Chat Messages. Available variables: %player%, %message%
chat = "%message%" chat = "%message%"
#Command Messages. Available variables: %player%, %command%
commands = "%player% **executed command: %command%**"
#Should messages sent with TellRaw be sent to discord as a chat? (Experimental)
relayTellRaw = true
#Should the entire command executed be relayed to discord, or only the name of the command
relayFullCommands = false
#The message to show when someone uses /discord command. You can use %inviteurl% #The message to show when someone uses /discord command. You can use %inviteurl%
inviteMessage = "Hey, check out our discord server here -> %inviteurl%" inviteMessage = "Hey, check out our discord server here -> %inviteurl%"
#Change in which channel messages appear #Change in which channel messages appear
[messageDestinations] [messageDestinations]
#Should Server Starting/Started/Stopping/Stopped Messages be in chat. If false, it will appear in the log channel
statusInChat = false
#Should Join/Leave Messages be in chat. If false, it will appear in the log channel
joinLeaveInChat = false
#Should Advancement Messages be in chat. If false, it will appear in the log channel
advancementsInChat = false
#Should Death messages be in chat. If false, it will appear in the log channel
deathInChat = false
#Control where CHAT messages are delivered
[messageDestinations.chat]
#The Channel the message will be delivered to. Valid entries are CHAT, EVENT, CONSOLE
channel = "CHAT"
#Should the message be sent using EMBED style messages
useEmbed = false
#Control where START/STOP messages are delivered
[messageDestinations.startStop]
#The Channel the message will be delivered to. Valid entries are CHAT, EVENT, CONSOLE
channel = "EVENT"
#Should the message be sent using EMBED style messages
useEmbed = false
#Control where JOIN/LEAVE messages are delivered
[messageDestinations.joinLeave]
#The Channel the message will be delivered to. Valid entries are CHAT, EVENT, CONSOLE
channel = "EVENT"
#Should the message be sent using EMBED style messages
useEmbed = false
#Control where ADVANCEMENT messages are delivered
[messageDestinations.advancements]
#The Channel the message will be delivered to. Valid entries are CHAT, EVENT, CONSOLE
channel = "EVENT"
#Should the message be sent using EMBED style messages
useEmbed = false
#Control where DEATH messages are delivered
[messageDestinations.death]
#The Channel the message will be delivered to. Valid entries are CHAT, EVENT, CONSOLE
channel = "EVENT"
#Should the message be sent using EMBED style messages
useEmbed = false
#Control where COMMAND messages are delivered
[messageDestinations.commands]
#The Channel the message will be delivered to. Valid entries are CHAT, EVENT, CONSOLE
channel = "EVENT"
#Should the message be sent using EMBED style messages
useEmbed = false
#Enable or Disable certain bot commands
[botCommands]
#Allow members to link their MC and Discord accounts
accountLinking = true
#Enable/Disable the Player List command
allowPlayerList = true
#Enable/Disable the Server Status command
allowServerStatus = true
#Execute Minecraft commands in Discord
[linkedCommands]
#Should linked commands be enabled
enabled = false
#Commands to be linked
commands = []