summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authorSin-MacBook <[email protected]>2020-08-27 17:26:39 +0200
committerSin-MacBook <[email protected]>2020-08-27 17:26:39 +0200
commit385b98c57251cb5b4a867fe8bd6208ec319aff07 (patch)
tree952e5a76392d288b09782184f7c24a0ec7f638de /server/src
parentmega cool update ig (diff)
downloaddep-core-385b98c57251cb5b4a867fe8bd6208ec319aff07.tar.xz
dep-core-385b98c57251cb5b4a867fe8bd6208ec319aff07.zip
feat/ change: desc
Donate.ts: - new ServerList.ts: - `msg.reply` instead of `msg.author.send`
Diffstat (limited to 'server/src')
-rw-r--r--server/src/commands/bot/Donate.ts27
-rw-r--r--server/src/commands/owner/ServerList.ts2
2 files changed, 28 insertions, 1 deletions
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<Message> {
+ 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