mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
shorten in Util
This commit is contained in:
@@ -19,13 +19,9 @@ module.exports = class UpvoteCommand extends Command {
|
||||
const { body } = await snekfetch
|
||||
.get(`https://discordbots.org/api/bots/${this.client.user.id}/votes`)
|
||||
.set({ Authorization: DBOTSORG_KEY });
|
||||
const haste = await snekfetch
|
||||
.post('https://hastebin.com/documents')
|
||||
.send(body.map(user => `${user.username}#${user.discriminator}`).join('\n'));
|
||||
return msg.say(stripIndents`
|
||||
Upvote Xiao and get rewards while joining ${body.length} others!
|
||||
<https://discordbots.org/bot/${this.client.user.id}>
|
||||
List of Upvoters: <https://hastebin.com/${haste.body.key}>
|
||||
<https://discordbots.org/bot/xiaobot>
|
||||
`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user