mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
Moved 8ball to Fun category.
This commit is contained in:
parent
5abda092e0
commit
5b3df90067
2 changed files with 40 additions and 38 deletions
|
@ -2,49 +2,12 @@ import { MessageEmbed } from "discord.js";
|
|||
import Command from "../core/command";
|
||||
import {CommonLibrary} from "../core/lib";
|
||||
|
||||
const responses = [
|
||||
"Most likely,",
|
||||
"It is certain,",
|
||||
"It is decidedly so,",
|
||||
"Without a doubt,",
|
||||
"Definitely,",
|
||||
"You may rely on it,",
|
||||
"As I see it, yes,",
|
||||
"Outlook good,",
|
||||
"Yes,",
|
||||
"Signs point to yes,",
|
||||
"Reply hazy, try again,",
|
||||
"Ask again later,",
|
||||
"Better not tell you now,",
|
||||
"Cannot predict now,",
|
||||
"Concentrate and ask again,",
|
||||
"Don't count on it,",
|
||||
"My reply is no,",
|
||||
"My sources say no,",
|
||||
"Outlook not so good,",
|
||||
"Very doubtful,"
|
||||
];
|
||||
|
||||
export default new Command({
|
||||
description: "Fun commands.",
|
||||
endpoint: false,
|
||||
run: "Please provide an argument.\nFor help, run `%prefix%help fun`.",
|
||||
subcommands:
|
||||
{
|
||||
"8ball": new Command({
|
||||
description: "Answers your question in an 8-ball manner.",
|
||||
endpoint: false,
|
||||
usage: "<question>",
|
||||
run: "Please provide a question.",
|
||||
any: new Command({
|
||||
description: "Question to ask the 8 Ball.",
|
||||
async run($: CommonLibrary): Promise<any>
|
||||
{
|
||||
const sender = $.message.author;
|
||||
$.channel.send($(responses).random() + ` <@${sender.id}>`);
|
||||
}
|
||||
})
|
||||
}),
|
||||
poll: new Command({
|
||||
description: "Create a poll.",
|
||||
usage: "<question>",
|
||||
|
@ -68,4 +31,4 @@ export default new Command({
|
|||
})
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
39
src/commands/fun/8ball.ts
Normal file
39
src/commands/fun/8ball.ts
Normal file
|
@ -0,0 +1,39 @@
|
|||
import Command from "../../core/command";
|
||||
import {CommonLibrary} from "../../core/lib";
|
||||
const responses = [
|
||||
"Most likely,",
|
||||
"It is certain,",
|
||||
"It is decidedly so,",
|
||||
"Without a doubt,",
|
||||
"Definitely,",
|
||||
"You may rely on it,",
|
||||
"As I see it, yes,",
|
||||
"Outlook good,",
|
||||
"Yes,",
|
||||
"Signs point to yes,",
|
||||
"Reply hazy, try again,",
|
||||
"Ask again later,",
|
||||
"Better not tell you now,",
|
||||
"Cannot predict now,",
|
||||
"Concentrate and ask again,",
|
||||
"Don't count on it,",
|
||||
"My reply is no,",
|
||||
"My sources say no,",
|
||||
"Outlook not so good,",
|
||||
"Very doubtful,"
|
||||
];
|
||||
|
||||
export default new Command({
|
||||
description: "Answers your question in an 8-ball manner.",
|
||||
endpoint: false,
|
||||
usage: "<question>",
|
||||
run: "Please provide a question.",
|
||||
any: new Command({
|
||||
description: "Question to ask the 8-ball.",
|
||||
async run($: CommonLibrary): Promise<any>
|
||||
{
|
||||
const sender = $.message.author;
|
||||
$.channel.send($(responses).random() + ` <@${sender.id}>`);
|
||||
}
|
||||
})
|
||||
})
|
Loading…
Reference in a new issue