23 lines
No EOL
579 B
C#
23 lines
No EOL
579 B
C#
using System.Threading.Tasks;
|
|
using Discord.Commands;
|
|
using Geekbot.net.Lib.Media;
|
|
|
|
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());
|
|
}
|
|
}
|
|
} |