Repository navigation
Presence Configuration
_Axieum edited this page Nov 20, 2019
·
1 revision
A Discord Bot has a presence/status just like every user, this is shown under their name (e.g. "Playing Minecraft").
Configuring multiple presence entries will cause the Bot to rotate periodically through the various presences.
#General configuration
[general]
#Discord bot configuration
[general.bot]
#Bot presence update interval (in seconds)
#Range: 12 ~ 9223372036854775807
presence_interval = 12
#Presence definitions
[[general.bot.presences]]
#Presence name (i.e. "... name")
#Allowed Values: DATETIME|format, UPTIME|format, PLAYER_COUNT, MAX_PLAYERS, MOTD, TPS, TPS_TIME, WORLD
name = "for {{UPTIME}}"
#Presence type (i.e. "Playing ...")
#Allowed Values: DEFAULT, STREAMING, LISTENING, WATCHING
type = "DEFAULT"
[[general.bot.presences]]
#Presence name (i.e. "... name")
#Allowed Values: DATETIME|format, UPTIME|format, PLAYER_COUNT, MAX_PLAYERS, MOTD, TPS, TPS_TIME, WORLD
name = "{{PLAYER_COUNT}} players"
#Presence type (i.e. "Playing ...")
#Allowed Values: DEFAULT, STREAMING, LISTENING, WATCHING
type = "WATCHING"
[[general.bot.presences]]
#Presence name (i.e. "... name")
#Allowed Values: DATETIME|format, UPTIME|format, PLAYER_COUNT, MAX_PLAYERS, MOTD, TPS, TPS_TIME, WORLD
name = "Minecraft"
#Presence type (i.e. "Playing ...")
#Allowed Values: DEFAULT, STREAMING, LISTENING, WATCHING
type = "STREAMING"
#Presence url
url = "https://www.twitch.tv/minecraft"
[[general.bot.presences]]
#Presence name (i.e. "... name")
#Allowed Values: DATETIME|format, UPTIME|format, PLAYER_COUNT, MAX_PLAYERS, MOTD, TPS, TPS_TIME, WORLD
name = "{{TPS}} TPS"
#Presence type (i.e. "Playing ...")
#Allowed Values: DEFAULT, STREAMING, LISTENING, WATCHING
type = "LISTENING"The above presence entries have the following effect:



