From eed1438fb2cd3f947fd874f5ee57c7fa6fd3491a Mon Sep 17 00:00:00 2001 From: Keanu Date: Tue, 18 Aug 2020 09:22:07 +0000 Subject: [PATCH] Removed fun.ts --- src/commands/fun.ts | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/commands/fun.ts diff --git a/src/commands/fun.ts b/src/commands/fun.ts deleted file mode 100644 index 0250179..0000000 --- a/src/commands/fun.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { MessageEmbed } from "discord.js"; -import Command from "../core/command"; -import {CommonLibrary} from "../core/lib"; - -export default new Command({ - description: "Fun commands.", - endpoint: false, - run: "Please provide an argument.\nFor help, run `%prefix%help fun`.", - subcommands: - { - poll: new Command({ - description: "Create a poll.", - usage: "", - run: "Please provide a question.", - any: new Command({ - description: "Question for the poll.", - async run($: CommonLibrary): Promise - { - const embed = new MessageEmbed() - .setAuthor(`Poll created by ${$.message.author.username}`, $.message.guild?.iconURL({ dynamic: true }) ?? undefined) - .setColor(0xffffff) - .setFooter("React to vote.") - .setDescription($.args.join(" ")); - const msg = await $.channel.send(embed); - await msg.react("✅"); - await msg.react("⛔"); - $.message.delete({ - timeout: 1000 - }); - } - }) - }) - } -});