Removed fun.ts

This commit is contained in:
Keanu Timmermans 2020-08-18 09:22:07 +00:00
parent bd0984eb69
commit eed1438fb2
1 changed files with 0 additions and 34 deletions

View File

@ -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: "<question>",
run: "Please provide a question.",
any: new Command({
description: "Question for the poll.",
async run($: CommonLibrary): Promise<any>
{
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
});
}
})
})
}
});