Add supported to !about
This commit is contained in:
parent
e0209d3319
commit
7724c8f65b
1 changed files with 12 additions and 1 deletions
|
@ -1495,12 +1495,19 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
const loadedPlugins = Array.from(this.knub.getGuildData(this.guildId).loadedPlugins.keys());
|
const loadedPlugins = Array.from(this.knub.getGuildData(this.guildId).loadedPlugins.keys());
|
||||||
loadedPlugins.sort();
|
loadedPlugins.sort();
|
||||||
|
|
||||||
|
const supporters = [
|
||||||
|
["Flokie", 10],
|
||||||
|
["CmdData", 1],
|
||||||
|
["JackDaniel", 1],
|
||||||
|
];
|
||||||
|
supporters.sort(sorter(r => r[1], "DESC"));
|
||||||
|
|
||||||
const aboutContent: MessageContent = {
|
const aboutContent: MessageContent = {
|
||||||
embed: {
|
embed: {
|
||||||
title: `About ${this.bot.user.username}`,
|
title: `About ${this.bot.user.username}`,
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
name: "Basic info",
|
name: "Status",
|
||||||
value:
|
value:
|
||||||
basicInfoRows
|
basicInfoRows
|
||||||
.map(([label, value]) => {
|
.map(([label, value]) => {
|
||||||
|
@ -1512,6 +1519,10 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
name: `Loaded plugins on this server (${loadedPlugins.length})`,
|
name: `Loaded plugins on this server (${loadedPlugins.length})`,
|
||||||
value: loadedPlugins.join(", "),
|
value: loadedPlugins.join(", "),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Zeppelin supporters 🎉",
|
||||||
|
value: supporters.map(s => `**${s[0]}** ${s[1]}€/mo`).join("\n"),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue