discordbotlist
Version:
Integrate with discordbotlist.com and support voting rewards and promote your bot's stats on the website.
19 lines (18 loc) • 530 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErisAdapter = void 0;
const base_1 = require("./base");
class ErisAdapter extends base_1.BaseAdapter {
constructor(client) {
super();
this.client = client;
this.botId = client.user.id;
}
getBotStats() {
return {
guilds: this.client.guilds.size,
users: this.client.guilds.reduce((acc, guild) => acc + guild.memberCount, 0),
};
}
}
exports.ErisAdapter = ErisAdapter;
;