45 lines
No EOL
1.4 KiB
C#
45 lines
No EOL
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Discord.Commands;
|
|
using Geekbot.net.Lib.IClients;
|
|
|
|
namespace Geekbot.net.Modules
|
|
{
|
|
public class EightBall : ModuleBase
|
|
{
|
|
private readonly IRandomClient rnd;
|
|
public EightBall(IRandomClient randomClient)
|
|
{
|
|
rnd = randomClient;
|
|
}
|
|
[Command("8ball", RunMode = RunMode.Async), Summary("Ask 8Ball a Question.")]
|
|
public async Task Ball([Remainder, Summary("The Question")] string echo)
|
|
{
|
|
var replies = new List<string> {
|
|
"It is certain",
|
|
"It is decidedly so",
|
|
"Without a doubt",
|
|
"Yes, definitely",
|
|
"You may rely on it",
|
|
"As I see it, yes",
|
|
"Most likely",
|
|
"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"};
|
|
|
|
var answer = rnd.Client.Next(replies.Count);
|
|
await ReplyAsync(replies[answer]);
|
|
}
|
|
}
|
|
} |