DUXPLIMA Documentation

discord.conf

Every key of the Discord add-on: the bot, bridges, events, the moderation log, the avatar and the texts.

plugins/uxmChat-Discord/discord.conf. Never put it in git; env:NAME reads a secret from an environment variable.

KeyDefaultMeaning
bot.token""The bot's token, for lines from Discord and the slash commands; empty posts by webhook only
bot.guild""The guild id the slash commands are registered in; empty registers them everywhere
post-network-linestrueAlso post lines of network channels and network joins and quits said on other servers
bridgesglobal, both waysEach { channel, discord-channel, webhook, to-game, to-discord }
events.discord-channel, webhook""Where events are posted
events.kindsjoin, first-join, quit, death, advancement, network-join, network-quitAlso kick and network-switch
moderation-log.discord-channel, webhook""Where staff actions are posted
avatarhttps://mc-heads.net/avatar/{uuid}/64A webhook post's avatar
max-length256The longest line from Discord that goes into the game

texts

KeyDefault
sourceDiscord
bot-line**{name}**: {text}
moderation**{staff}** {action} {target} {detail}
online-descriptionHow many players are online
playerlist-descriptionWho is online, by server
online{count} players online: {servers}
online-server{server} {count}
playerlist-server**{server}** ({count}): {names}
nobody-onlineNobody is online.

Related: Discord