using System.Threading.Tasks; using Discord.Commands; using Geekbot.net.Lib; using Geekbot.net.Lib.Media; namespace Geekbot.net.Commands.Randomness { public class Fortune : ModuleBase { private readonly IFortunesProvider _fortunes; public Fortune(IFortunesProvider fortunes) { _fortunes = fortunes; } [Command("fortune", RunMode = RunMode.Async)] [Summary("Get a random fortune")] public async Task GetAFortune() { await ReplyAsync(_fortunes.GetRandomFortune()); } } }