From 385b98c57251cb5b4a867fe8bd6208ec319aff07 Mon Sep 17 00:00:00 2001 From: Sin-MacBook Date: Thu, 27 Aug 2020 17:26:39 +0200 Subject: feat/ change: desc Donate.ts: - new ServerList.ts: - `msg.reply` instead of `msg.author.send` --- server/src/commands/bot/Donate.ts | 27 +++++++++++++++++++++++++++ server/src/commands/owner/ServerList.ts | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 server/src/commands/bot/Donate.ts diff --git a/server/src/commands/bot/Donate.ts b/server/src/commands/bot/Donate.ts new file mode 100644 index 0000000..675a6f3 --- /dev/null +++ b/server/src/commands/bot/Donate.ts @@ -0,0 +1,27 @@ +import { Command } from 'discord-akairo'; +import { Message } from 'discord.js'; +import { colour } from '../../Config'; + +export default class DonateBot extends Command { + public constructor() { + super('donate', { + aliases: ['donate'], + category: 'bot', + description: { + content: 'Gives you the bot\'s donation link.', + usage: '', + examples: [ + '' + ] + }, + ratelimit: 3 + }); + } + + public exec(msg: Message): Promise { + const embed = this.client.util.embed() + .setColor(colour) + .setDescription('To donate, please use [this link](https://cash.app/$shiftknob).'); + return msg.channel.send(embed); + } +} \ No newline at end of file diff --git a/server/src/commands/owner/ServerList.ts b/server/src/commands/owner/ServerList.ts index e5ed434..0927bf5 100644 --- a/server/src/commands/owner/ServerList.ts +++ b/server/src/commands/owner/ServerList.ts @@ -29,6 +29,6 @@ export default class ServerListOwner extends Command { }); const text = `Total: ${this.client.guilds.cache.size}\n\n### Servers\n\n${list.join("\n")}`; - return msg.author.send({ files: [{ attachment: Buffer.from(text), name: "ServerList.txt" }] }); + return msg.reply({ files: [{ attachment: Buffer.from(text), name: "ServerList.txt" }] }); } } \ No newline at end of file -- cgit v1.2.3