Add supported to !about

This commit is contained in:
Dragory 2020-05-23 19:45:55 +03:00
parent e0209d3319
commit 7724c8f65b
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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"),
},
], ],
}, },
}; };