Add some dabbing

This commit is contained in:
runebaas 2019-05-01 18:22:44 +02:00
parent e4d71a7a99
commit d761e0bf10
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
4 changed files with 30 additions and 0 deletions

View file

@ -64,6 +64,13 @@ namespace Geekbot.net.Commands.Randomness
{ {
await ReplyAsync("", false, Eb(_mediaProvider.GetFox())); await ReplyAsync("", false, Eb(_mediaProvider.GetFox()));
} }
[Command("dab", RunMode = RunMode.Async)]
[Summary("Get a random dab image")]
public async Task Dab()
{
await ReplyAsync("", false, Eb(_mediaProvider.GetDab()));
}
private static Embed Eb(string image) private static Embed Eb(string image)
{ {

View file

@ -10,5 +10,6 @@
string GetTurtle(); string GetTurtle();
string GetPinguin(); string GetPinguin();
string GetFox(); string GetFox();
string GetDab();
} }
} }

View file

@ -16,6 +16,7 @@ namespace Geekbot.net.Lib.Media
private string[] _turtlesImages; private string[] _turtlesImages;
private string[] _pinguinImages; private string[] _pinguinImages;
private string[] _foxImages; private string[] _foxImages;
private string[] _dabImages;
public MediaProvider(IGeekbotLogger logger) public MediaProvider(IGeekbotLogger logger)
{ {
@ -32,6 +33,7 @@ namespace Geekbot.net.Lib.Media
LoadTurtles(); LoadTurtles();
LoadPinguins(); LoadPinguins();
LoadFoxes(); LoadFoxes();
LoadDab();
} }
private void LoadCheckem() private void LoadCheckem()
@ -90,6 +92,13 @@ namespace Geekbot.net.Lib.Media
_logger.Trace(LogSource.Geekbot, $"Loaded {_foxImages.Length} Foxes Images"); _logger.Trace(LogSource.Geekbot, $"Loaded {_foxImages.Length} Foxes Images");
} }
private void LoadDab()
{
var rawLinks = File.ReadAllText(Path.GetFullPath("./Storage/dab"));
_dabImages = rawLinks.Split("\n");
_logger.Trace(LogSource.Geekbot, $"Loaded {_dabImages.Length} Dab Images");
}
public string GetCheckem() public string GetCheckem()
{ {
return _checkemImages[_random.Next(0, _checkemImages.Length)]; return _checkemImages[_random.Next(0, _checkemImages.Length)];
@ -129,5 +138,10 @@ namespace Geekbot.net.Lib.Media
{ {
return _foxImages[_random.Next(0, _foxImages.Length)]; return _foxImages[_random.Next(0, _foxImages.Length)];
} }
public string GetDab()
{
return _dabImages[_random.Next(0, _dabImages.Length)];
}
} }
} }

8
Geekbot.net/Storage/dab Normal file
View file

@ -0,0 +1,8 @@
https://pre00.deviantart.net/dcde/th/pre/i/2018/247/8/1/dabbing_pug_cute_dab_dance_by_manekibb-dcm2lvd.png
https://banner2.kisspng.com/20180625/xfv/kisspng-squidward-tentacles-dab-desktop-wallpaper-dab-emoji-5b31a97a839bf2.6353972915299813065391.jpg
https://djbooth.net/.image/t_share/MTUzNDg2MDIzOTU4NzM0NzA1/life-death-of-dab-dancejpg.jpg
https://res.cloudinary.com/teepublic/image/private/s--gfsWHvaH--/t_Preview/b_rgb:262c3a,c_limit,f_jpg,h_630,q_90,w_630/v1493209189/production/designs/1524888_1.jpg
https://i1.wp.com/fortniteskins.net/wp-content/uploads/2018/04/dab-skin-1.png?quality=90&strip=all&ssl=1
https://i.pinimg.com/originals/12/d4/0a/12d40a8fc66b7a7ea8b9044ee0303974.png
https://images.bewakoof.com/t540/dab-penguin-boyfriend-t-shirt-women-s-printed-boyfriend-t-shirts-196918-1538034349.jpg
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSKH1FLh5L3pOR2tamx-5OBqm_W2FFl8F7gteTAs2vMowwJ1Y32