geekbot/Geekbot.net/Modules/Panda.cs

23 lines
579 B
C#
Raw Normal View History

2017-09-19 20:39:49 +02:00
using System.Threading.Tasks;
using Discord.Commands;
using Geekbot.net.Lib.Media;
2017-09-19 20:39:49 +02:00
namespace Geekbot.net.Modules
{
public class Panda : ModuleBase
{
private readonly IPandaProvider pandaImages;
public Panda(IPandaProvider pandaImages)
{
this.pandaImages = pandaImages;
}
[Command("panda", RunMode = RunMode.Async)]
[Summary("Get a random panda")]
public async Task PandaCommand()
{
await ReplyAsync(pandaImages.GetRandomPanda());
}
}
}