2017-10-05 21:42:27 +02:00
|
|
|
|
using System.Threading.Tasks;
|
2018-03-28 21:28:16 +02:00
|
|
|
|
using Discord;
|
2017-10-05 21:42:27 +02:00
|
|
|
|
using Discord.Commands;
|
2017-10-12 16:34:10 +02:00
|
|
|
|
using Geekbot.net.Lib;
|
2017-10-05 21:42:27 +02:00
|
|
|
|
using Geekbot.net.Lib.Media;
|
|
|
|
|
|
2018-05-03 00:56:06 +02:00
|
|
|
|
namespace Geekbot.net.Commands.Randomness
|
2017-10-05 21:42:27 +02:00
|
|
|
|
{
|
|
|
|
|
public class RandomAnimals : ModuleBase
|
|
|
|
|
{
|
|
|
|
|
private readonly IMediaProvider _mediaProvider;
|
2017-12-29 01:53:50 +01:00
|
|
|
|
|
2017-10-05 21:42:27 +02:00
|
|
|
|
public RandomAnimals(IMediaProvider mediaProvider)
|
|
|
|
|
{
|
|
|
|
|
_mediaProvider = mediaProvider;
|
|
|
|
|
}
|
2017-12-29 01:53:50 +01:00
|
|
|
|
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Command("panda", RunMode = RunMode.Async)]
|
2017-10-12 16:34:10 +02:00
|
|
|
|
[Remarks(CommandCategories.Randomness)]
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Summary("Get a random panda image")]
|
2018-04-30 23:44:19 +02:00
|
|
|
|
public async Task Panda()
|
2017-10-05 21:42:27 +02:00
|
|
|
|
{
|
2018-04-30 23:44:19 +02:00
|
|
|
|
await ReplyAsync("", false, Eb(_mediaProvider.GetPanda()));
|
2017-10-05 21:42:27 +02:00
|
|
|
|
}
|
2017-12-29 01:53:50 +01:00
|
|
|
|
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Command("croissant", RunMode = RunMode.Async)]
|
|
|
|
|
[Alias("gipfeli")]
|
2017-10-12 16:34:10 +02:00
|
|
|
|
[Remarks(CommandCategories.Randomness)]
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Summary("Get a random croissant image")]
|
2018-04-30 23:44:19 +02:00
|
|
|
|
public async Task Croissant()
|
2017-10-05 21:42:27 +02:00
|
|
|
|
{
|
2018-04-30 23:44:19 +02:00
|
|
|
|
await ReplyAsync("", false, Eb(_mediaProvider.GetCrossant()));
|
2017-10-05 21:42:27 +02:00
|
|
|
|
}
|
2017-12-29 01:53:50 +01:00
|
|
|
|
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Command("pumpkin", RunMode = RunMode.Async)]
|
2017-10-12 16:34:10 +02:00
|
|
|
|
[Remarks(CommandCategories.Randomness)]
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Summary("Get a random pumpkin image")]
|
2018-04-30 23:44:19 +02:00
|
|
|
|
public async Task Pumpkin()
|
2017-10-05 21:42:27 +02:00
|
|
|
|
{
|
2018-04-30 23:44:19 +02:00
|
|
|
|
await ReplyAsync("", false, Eb(_mediaProvider.GetPumpkin()));
|
2017-10-05 21:42:27 +02:00
|
|
|
|
}
|
2017-12-29 01:53:50 +01:00
|
|
|
|
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Command("squirrel", RunMode = RunMode.Async)]
|
2017-10-12 16:34:10 +02:00
|
|
|
|
[Remarks(CommandCategories.Randomness)]
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Summary("Get a random squirrel image")]
|
2018-04-30 23:44:19 +02:00
|
|
|
|
public async Task Squirrel()
|
2017-10-05 21:42:27 +02:00
|
|
|
|
{
|
2018-04-30 23:44:19 +02:00
|
|
|
|
await ReplyAsync("", false, Eb(_mediaProvider.GetSquirrel()));
|
2017-10-05 21:42:27 +02:00
|
|
|
|
}
|
2017-12-29 01:53:50 +01:00
|
|
|
|
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Command("turtle", RunMode = RunMode.Async)]
|
2017-10-12 16:34:10 +02:00
|
|
|
|
[Remarks(CommandCategories.Randomness)]
|
2017-10-05 21:42:27 +02:00
|
|
|
|
[Summary("Get a random turtle image")]
|
2018-04-30 23:44:19 +02:00
|
|
|
|
public async Task Turtle()
|
2017-10-05 21:42:27 +02:00
|
|
|
|
{
|
2018-04-30 23:44:19 +02:00
|
|
|
|
await ReplyAsync("", false, Eb(_mediaProvider.GetTurtle()));
|
2018-03-28 21:28:16 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Command("pinguin", RunMode = RunMode.Async)]
|
|
|
|
|
[Alias("pingu")]
|
|
|
|
|
[Remarks(CommandCategories.Randomness)]
|
2018-05-01 16:50:48 +02:00
|
|
|
|
[Summary("Get a random pinguin image")]
|
2018-04-30 23:44:19 +02:00
|
|
|
|
public async Task Pinguin()
|
2018-03-28 21:28:16 +02:00
|
|
|
|
{
|
2018-04-30 23:44:19 +02:00
|
|
|
|
await ReplyAsync("", false, Eb(_mediaProvider.GetPinguin()));
|
2018-03-28 21:28:16 +02:00
|
|
|
|
}
|
2018-03-28 22:14:07 +02:00
|
|
|
|
|
|
|
|
|
[Command("fox", RunMode = RunMode.Async)]
|
|
|
|
|
[Remarks(CommandCategories.Randomness)]
|
2018-05-01 16:50:48 +02:00
|
|
|
|
[Summary("Get a random fox image")]
|
2018-04-30 23:44:19 +02:00
|
|
|
|
public async Task Fox()
|
2018-03-28 22:14:07 +02:00
|
|
|
|
{
|
2018-04-30 23:44:19 +02:00
|
|
|
|
await ReplyAsync("", false, Eb(_mediaProvider.GetFox()));
|
2018-03-28 22:14:07 +02:00
|
|
|
|
}
|
2018-03-28 21:28:16 +02:00
|
|
|
|
|
2018-04-30 23:44:19 +02:00
|
|
|
|
private EmbedBuilder Eb(string image)
|
2018-03-28 21:28:16 +02:00
|
|
|
|
{
|
|
|
|
|
var eb = new EmbedBuilder();
|
|
|
|
|
eb.ImageUrl = image;
|
|
|
|
|
return eb;
|
2017-10-05 21:42:27 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|