public Task EightBall(CommandContext ctx, [Description("Question to ask the 8-Ball")][RemainingText] string question = "") { if (string.IsNullOrWhiteSpace(question)) { return(null); } var output = new DiscordEmbedBuilder() .WithDescription(":8ball: " + EightBallService.GetRandomAnswer() + " (" + ctx.User.Mention + ")") .WithColor(DiscordColor.Black); return(ctx.RespondAsync(embed: output.Build())); }
public EightBallModule(EightBallService eight) { this.eightBall = eight; }
public void GetRandomAnswer() { Assert.IsNotNull(EightBallService.GetRandomAnswer()); }