Add in some foxes aswell
This commit is contained in:
parent
3f02f90d70
commit
8974d6df7e
4 changed files with 55 additions and 0 deletions
|
@ -65,6 +65,14 @@ namespace Geekbot.net.Commands
|
|||
await ReplyAsync("", false, eb(_mediaProvider.getPinguin()));
|
||||
}
|
||||
|
||||
[Command("fox", RunMode = RunMode.Async)]
|
||||
[Remarks(CommandCategories.Randomness)]
|
||||
[Summary("Get a random turtle image")]
|
||||
public async Task fox()
|
||||
{
|
||||
await ReplyAsync("", false, eb(_mediaProvider.getFox()));
|
||||
}
|
||||
|
||||
private EmbedBuilder eb(string image)
|
||||
{
|
||||
var eb = new EmbedBuilder();
|
||||
|
|
|
@ -72,5 +72,8 @@
|
|||
<None Update="Storage\pinguins">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Storage\foxes">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -17,6 +17,7 @@ namespace Geekbot.net.Lib.Media
|
|||
private string[] _pumpkinImages;
|
||||
private string[] _turtlesImages;
|
||||
private string[] _pinguinImages;
|
||||
private string[] _foxImages;
|
||||
|
||||
public MediaProvider(IGeekbotLogger logger)
|
||||
{
|
||||
|
@ -32,6 +33,7 @@ namespace Geekbot.net.Lib.Media
|
|||
LoadPumpkins();
|
||||
LoadTurtles();
|
||||
LoadPinguins();
|
||||
LoadFoxes();
|
||||
}
|
||||
|
||||
private void LoadCheckem()
|
||||
|
@ -83,6 +85,13 @@ namespace Geekbot.net.Lib.Media
|
|||
_logger.Debug("Geekbot", $"Loaded {_pinguinImages.Length} Pinguin Images");
|
||||
}
|
||||
|
||||
private void LoadFoxes()
|
||||
{
|
||||
var rawLinks = File.ReadAllText(Path.GetFullPath("./Storage/foxes"));
|
||||
_foxImages = rawLinks.Split("\n");
|
||||
_logger.Debug("Geekbot", $"Loaded {_foxImages.Length} Foxes Images");
|
||||
}
|
||||
|
||||
public string getCheckem()
|
||||
{
|
||||
return _checkemImages[_random.Next(0, _checkemImages.Length)];
|
||||
|
@ -117,6 +126,11 @@ namespace Geekbot.net.Lib.Media
|
|||
{
|
||||
return _pinguinImages[_random.Next(0, _pinguinImages.Length)];
|
||||
}
|
||||
|
||||
public string getFox()
|
||||
{
|
||||
return _foxImages[_random.Next(0, _foxImages.Length)];
|
||||
}
|
||||
}
|
||||
|
||||
public interface IMediaProvider
|
||||
|
@ -128,5 +142,6 @@ namespace Geekbot.net.Lib.Media
|
|||
string getPumpkin();
|
||||
string getTurtle();
|
||||
string getPinguin();
|
||||
string getFox();
|
||||
}
|
||||
}
|
29
Geekbot.net/Storage/foxes
Normal file
29
Geekbot.net/Storage/foxes
Normal file
|
@ -0,0 +1,29 @@
|
|||
https://i.ytimg.com/vi/qF6OOGuT_hI/maxresdefault.jpg
|
||||
https://www.hd-wallpapersdownload.com/script/bulk-upload/desktop-funny-fox-wallpaper.jpg
|
||||
http://moziru.com/images/drawn-fox-funny-18.jpg
|
||||
https://static.tumblr.com/bb34d8f163098ad1daafcffbdbb03975/rk23uap/Nwwp0rmi2/tumblr_static_tumblr_static__640.jpg
|
||||
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQoHUFOnZ3wJ2kT1skNdztFXXSvpU8bEoGS1alNZiuyLXvGJhcY
|
||||
http://childrenstorytales.com/wp-content/uploads/2011/03/how-to-draw-a-red-fox-in-the-snow.jpg
|
||||
https://www.popsci.com/sites/popsci.com/files/styles/1000_1x_/public/import/2013/images/2013/09/redfoxyawn.jpg?itok=yRkSVe8T
|
||||
https://hdqwalls.com/wallpapers/wild-fox-art.jpg
|
||||
https://ae01.alicdn.com/kf/HTB1Q9dpLpXXXXbhXpXXq6xXFXXXl/new-cute-fox-toy-lifelike-soft-long-yellow-fox-doll-gift-about-73cm.jpg_640x640.jpg
|
||||
https://i.imgur.com/ktK9yXX.jpg
|
||||
https://res.cloudinary.com/teepublic/image/private/s--yTx2ncFA--/t_Preview/b_rgb:c8e0ec,c_limit,f_auto,h_313,q_90,w_313/v1506478249/production/designs/1932607_0
|
||||
http://4.bp.blogspot.com/-Hz-o_KYj3Xk/Vlm2mwbztjI/AAAAAAAA8Ss/jbH5ovjmC9A/s1600/ScreenShot5502.jpg
|
||||
https://i.pinimg.com/originals/1e/d5/2f/1ed52f70873a95ac02fa074e48edfb71.jpg
|
||||
https://i.imgur.com/2vCrtap.jpg
|
||||
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSfukWGu_IBaDeJOMBqOhVAwsDfqEPw0BFpCn5_-Iyr_xjd7zi9
|
||||
https://cdn.pixabay.com/photo/2017/01/31/18/36/animal-2026297_960_720.png
|
||||
https://i.pinimg.com/originals/e2/63/67/e26367a0844633b2a697b0a9d69e8cc9.jpg
|
||||
https://i.ebayimg.com/images/g/BvkAAOSwqxdTqrip/s-l300.jpg
|
||||
https://res.cloudinary.com/teepublic/image/private/s--1R53bger--/t_Preview/b_rgb:eae0c7,c_limit,f_jpg,h_630,q_90,w_630/v1481013120/production/designs/914528_1.jpg
|
||||
https://i.pinimg.com/originals/97/fe/69/97fe698462afde7b4209ccefeecbce71.jpg
|
||||
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT6G0ch6g-wG1TuDJ6BbkOFelMNnkgFXC6CxOw7qSNjoFkx-BCe
|
||||
https://wallpaperscraft.com/image/fox_forest_grass_117190_540x960.jpg
|
||||
https://image.freepik.com/free-vector/cartoon-flat-illustration-funny-cute-fox_6317-1174.jpg
|
||||
https://orig00.deviantart.net/2feb/f/2013/137/a/f/fox_and_curious_squirrel_by_tamarar-d65ju8d.jpg
|
||||
https://res.cloudinary.com/teepublic/image/private/s--dICeNmBx--/t_Preview/b_rgb:6e2229,c_limit,f_jpg,h_630,q_90,w_630/v1505243196/production/designs/1890493_1.jpg
|
||||
https://vignette.wikia.nocookie.net/puppyinmypocketfanon/images/4/49/L-Baby-Fox.jpg/revision/latest?cb=20130421001806
|
||||
http://7-themes.com/data_images/out/69/7009194-fox-puppy.jpg
|
||||
http://www.tehcute.com/pics/201401/little-fox-big.jpg
|
||||
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR6QXB1APLdUsyzO39kPvhnC9cOvcwzEtsxown9QjWilWppia2mwg
|
Loading…
Reference in a new issue