-
Notifications
You must be signed in to change notification settings - Fork 21
/
blockbot-discord.toml
157 lines (142 loc) · 6.58 KB
/
blockbot-discord.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[bot]
# Discord Bot token
token = ""
# Discord guild/server id
guild =
# Channel IDs for the bot to use. Only the `chat` channel is required, others can be added or deleted
[bot.channels]
# Chat relay channel
chat =
# Console relay channel (can be deleted)
console =
[ChatRelay]
# Allow minecraft chat to mention/ping users and roles
allowMentions = true
# Convert discord formatting to minecraft formatting
convertMarkdown = true
# Try to escape player markdown sent in game
escapeIngameMarkdown = false
[ChatRelay.MinecraftFormat]
# Discord -> Minecraft message format
# Placeholders: {sender}, {sender_colored}, {top_role}, {message}
# Supports Simplified Text Format and Placeholder API with server context
messageFormat = "[<color:#7289DA>Discord</color> | {sender_colored}] {message}"
# Discord -> Minecraft reply format
# Placeholders: {sender}, {summary}, {message}
# Supports Simplified Text Format and Placeholder API with server context
replyFormat = "<gray>(Replying to @{sender}: <hover:'{message}'>{summary}</hover>)</gray>"
# Try to add images to messages
appendImages = false
# Use image interpolation
imageInterpolation = false
# Used when not using Webhook
[ChatRelay.DiscordMessageFormat]
# Placeholders: {sender}, {sender_display}, {message}
# Supports discord markdown and Placeholder API with player context
# Minecraft -> Discord message format
messageFormat = "{sender_display} » {message}"
# Minecraft -> Discord announcement format (/say)
announcementFormat = "{sender_display} » **{message}**"
# Minecraft -> Discord emote format (/me)
emoteFormat = "*{sender_display} {message}*"
# Supports discord markdown and Placeholder API with player context
playerJoin = "%player:displayname% joined the game"
playerLeave = "%player:displayname% left the game"
# Placeholders: {message}
playerDeath = "{message}"
# Placeholders: {advancement}
playerAdvancement = "%player:displayname% has made the advancement [{advancement}]"
serverStart = ":green_circle: Server Started"
serverStop = ":octagonal_sign: Server Stopped"
[ChatRelay.Webhook]
# Use a webhook (less compact) to display player names and avatars
useWebhook = true
# Name of the webhook for messages not from players
webhookName = "Server"
# URL for the webhook avatar for messages not from players
webhookAvatar = "https://i.imgur.com/IxPg1R2.png"
# URL to get the webhook avatar from for players
playerAvatarUrl = "https://cravatar.eu/helmavatar/{uuid}/128.png?{texture}"
# Placeholders: {sender}, {sender_display}, {message}
# Supports discord markdown and Placeholder API with player context
# Used when using Webhook
[ChatRelay.DiscordWebhookFormat]
messageFormat = "{message}"
announcementFormat = "**{message}**"
emoteFormat = "*{sender} {message}*"
# Placeholders: {sender}, {sender_display}
authorFormat = "{sender}"
[ConsoleRelay]
# Format to use for the console relay
pattern = "[%level] (%logger{1}) %msg%n"
# Minimum logger level to show in the console relay. OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE, ALL
minLevel = "INFO"
# Require administrator permissions on discord to use console
requireAdmin = true
[InlineCommands]
# Enables the /mc discord slash command to run in game commands from discord
enabled = true
# Comma separated list of the role ID's allowed to use inline commands
allowedRoles = []
# OP permission level to restrict commands
opLevel = 3
[Presence]
# The type of presence. Can be "Game", "Listening", "Watching", "Competing", "Disabled"
# Updates every 400 ticks (20 seconds)
activityType = "Game"
activityText = "Minecraft | %server:online%/%server:max_players%"
[MemberCommands]
[MemberCommands.PlayerList]
# Enables the playerlist discord slash command to get the players online
enabled = true
name = "playerlist"
description = "Gets the online players"
# Supports discord markdown and Placeholder API with server context
title = "%server:online%/%server:max_players%"
# Supports discord markdown and Placeholder API with player context
playerFormat = "%player:name%"
[MemberCommands.WhiteList]
# Enables the whitelist discord slash command to allow discord users to whitelist players
enabled = false
name = "whitelist"
description = "Whitelist a player"
# Messages for the whitelist discord slash command
[MemberCommands.WhiteList.Messages]
unknownPlayer = "Unknown player: {player}"
alreadyWhiteListed = "Player already whitelisted"
successful = "Whitelisted {player}"
[MemberCommands.WhiteList.PlayerArgument]
name = "username"
description = "The username of the player to whitelist"
[Linking]
# Enable account linking between Minecraft and discord. Enables /link in game and in discord
enabled = false
# Requires a linked account to join (Like a whitelist) Shows linking code on disconnect screen
requireLinking = false
# Sync the linked users discord nickname to their minecraft username
nicknameSync = false
# Comma separated list of role ID's allowed to join the server. Leave blank to allow any linked account to join. Also restricts /link command in discord
requiredRoles = []
# A map of role ID's and minecraft group ID's. Syncs roles if the player has blockbot.sync.<group_id> permission
syncedRoles = {}
# Require linked players to be in the main discord
requireInServer = false
# Message to show when linked players try to join without the required role
requiredRoleDisconnectMessage = "<red>You don't have the required discord role to join"
# Message to show when unlinked players try to join and requireLinking is true
unlinkedDisconnectMessage = [
"<yellow>A linked Discord account is required to join",
"<yellow>Use <gray>/link</gray> in discord to link your account",
"<gray>Link Code: <green><bold>{code}",
"<gray>Discord: <blue><underline>discord.gg/INVITECODE"
]
# Message to inform players they must be in the discord server to join
notInServerMessage = "<red>You must be in the discord server to join"
# Messages for the /link minecraft and discord commands
[Linking.Messages]
noLinkedAccounts = "<red>There are no matching linked accounts"
alreadyLinked = "<red>This account is already linked to <blue>{user}"
failedUnlink = "<red>Failed to unlink these accounts!"
successfulUnlink = "<blue>Successfully unlinked your account"
successfulLink = "Account successfully linked to: {player}"
linkCode = "<blue>Link your account with <gray>/link</gray> in discord. Code: <green><bold>{code}"