Now with 100% more pinguins

This commit is contained in:
runebaas 2018-03-28 21:28:16 +02:00
parent 75cbcfff76
commit 6bc6fb69af
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
4 changed files with 53 additions and 5 deletions

View file

@ -1,4 +1,5 @@
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Geekbot.net.Lib;
using Geekbot.net.Lib.Media;
@ -19,7 +20,7 @@ namespace Geekbot.net.Commands
[Summary("Get a random panda image")]
public async Task panda()
{
await ReplyAsync(_mediaProvider.getPanda());
await ReplyAsync("", false, eb(_mediaProvider.getPanda()));
}
[Command("croissant", RunMode = RunMode.Async)]
@ -28,7 +29,7 @@ namespace Geekbot.net.Commands
[Summary("Get a random croissant image")]
public async Task croissant()
{
await ReplyAsync(_mediaProvider.getCrossant());
await ReplyAsync("", false, eb(_mediaProvider.getCrossant()));
}
[Command("pumpkin", RunMode = RunMode.Async)]
@ -36,7 +37,7 @@ namespace Geekbot.net.Commands
[Summary("Get a random pumpkin image")]
public async Task pumpkin()
{
await ReplyAsync(_mediaProvider.getPumpkin());
await ReplyAsync("", false, eb(_mediaProvider.getPumpkin()));
}
[Command("squirrel", RunMode = RunMode.Async)]
@ -44,7 +45,7 @@ namespace Geekbot.net.Commands
[Summary("Get a random squirrel image")]
public async Task squirrel()
{
await ReplyAsync(_mediaProvider.getSquirrel());
await ReplyAsync("", false, eb(_mediaProvider.getSquirrel()));
}
[Command("turtle", RunMode = RunMode.Async)]
@ -52,7 +53,23 @@ namespace Geekbot.net.Commands
[Summary("Get a random turtle image")]
public async Task turtle()
{
await ReplyAsync(_mediaProvider.getTurtle());
await ReplyAsync("", false, eb(_mediaProvider.getTurtle()));
}
[Command("pinguin", RunMode = RunMode.Async)]
[Alias("pingu")]
[Remarks(CommandCategories.Randomness)]
[Summary("Get a random turtle image")]
public async Task pinguin()
{
await ReplyAsync("", false, eb(_mediaProvider.getPinguin()));
}
private EmbedBuilder eb(string image)
{
var eb = new EmbedBuilder();
eb.ImageUrl = image;
return eb;
}
}
}