Skip to content

Instantly share code, notes, and snippets.

@Default-01
Last active Aug 15, 2022
Embed
What would you like to do?
{
"messages": []
}
module.exports = {
token: "", // Put your bot Token here.
accountId: "", // Put your DBD Account ID here. get it by typing /license list in the support discord.
guildId: "984577959648174121", // Discord server ID.
adminRole: "1004718841844207646", // Admin role ID.
precense: {
username: "Main Bot", // The username of the main bot.
status: "online", // online, idle, dnd, invisible.
type: "Watching", // 'Playing', 'Streaming', 'Listening', 'Watching'.
message: "{players}/{total} players on {severs} servers!" // Bot status message. Place holders: {players} {total} {severs}
},
panels: [
{
unikeId: "counters", // Panel unike ID, must be unike.
listServers: [ // List the servers that should be displayed.
"Ragnarok",
"The Center",
"The Island",
"Valguero"
],
emojis: { // Server status emojis.
online: "✅",
offline: "❌",
total: "🌐"
},
formatting: { // Panel formatting.
servers: { // Formatting of the server fields.
name: '{emoji} {server} `{players}/{maxplayers} Players`', // Place holders: {emoji} {link} {maxplayers} {players} {status} {name} {rank} {port} {ip} {server}
value: '↳ {link}', // Place holders: {emoji} {link} {maxplayers} {players} {status} {name} {rank} {port} {ip} {server}
linkText: "connect",
inline: false
},
total: { // Formatting of the total field.
enabled: true,
name: '{emoji} Total `{players}/{maxplayers} Playing`', // Place holders: {emoji} {link} {maxplayers} {players}
value: '↳ {link}', // Place holders: {emoji} {link} {maxplayers} {players}
linkUrl: "https://defaultsbotdevelopment.com",
linkText: "Group Info",
inline: false
}
},
message: { // Panel message settings.
content: "",
embed: {
enabled: true,
title: "Server Counters",
color: 0x038CB5,
url: "",
thumbnail: "",
image: "",
footer: "Default's Bot Development",
description: ["`Below are all servers listed with some info:`"]
}
}
},
{
unikeId: "info", // Panel unike ID, must be unike.
listServers: [ // List the servers that should be displayed.
"Ragnarok",
"The Center",
"The Island",
"Valguero"
],
emojis: { // Server status emojis.
online: "🟢",
offline: "🔴",
total: "🔵"
},
formatting: { // Panel formatting.
servers: { // Formatting of the server fields.
name: '{emoji} {server}', // Place holders: {emoji} {link} {maxplayers} {players} {status} {name} {rank} {port} {ip} {server}
value: 'Status: `{status}`\nPlayers: `{players}/{maxplayers}`\nRank: `#{rank}`\nIp: `{ip}`\nPort: `{port}`\nLink: {link}', // Place holders: {emoji} {link} {maxplayers} {players} {status} {name} {rank} {port} {ip} {server}
linkText: "link",
inline: true
},
total: { // Formatting of the total field.
enabled: false,
name: '{emoji} Total `{players}/{maxplayers} Playing`', // Place holders: {emoji} {link} {maxplayers} {players}
value: '↳ {link}', // Place holders: {emoji} {link} {maxplayers} {players}
linkUrl: "https://defaultsbotdevelopment.com",
linkText: "Group Info",
inline: false
}
},
message: { // Panel message settings.
content: "",
embed: {
enabled: true,
title: "Server Information",
color: 0x038CB5,
url: "",
thumbnail: "",
image: "",
footer: "Default's Bot Development",
description: ["`Below are all servers listed with some info:`"]
}
}
}
],
channels: [
{
channelId: "1008416931788902560", // Channel ID of the status channel.
channelName: "Ragnarok {players}/{maxplayers} Players", // Place holders: {maxplayers} {players} {status} {name} {rank} {port} {ip} {server}
listServer: "Ragnarok" // Server name of the server you wanna display.
}
],
bots: [
{
token: "", // Bot token. (must be from a second bot)
precense: {
username: "Sub Bot 1",
status: "online", // online, idle, dnd, invisible
type: "Watching", // 'Playing', 'Streaming', 'Listening', 'Watching'
message: "{players}/{maxplayers} players online" // Place holders: {players} {maxplayers}
},
servers: ["Ragnarok", "The Center"] // List of servers you wanna display.
}
],
servers: [
{
name: "Ragnarok", // Server name.
id: "16427726" // Battlemetrics server ID. (you can find the ID on the end of the battlemetrics server url)
},
{
name: "The Center", // Server name.
id: "16427728" // Battlemetrics server ID. (you can find the ID on the end of the battlemetrics server url)
},
{
name: "The Island", // Server name.
id: "16427727" // Battlemetrics server ID. (you can find the ID on the end of the battlemetrics server url)
},
{
name: "Valguero", // Server name.
id: "16427725" // Battlemetrics server ID. (you can find the ID on the end of the battlemetrics server url)
}
]
}
Here is the cache and config file found for the PlayerCounter bot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment