diff --git a/app/animals.py b/app/animals.py index 4e4d5c7b..2af0a5d0 100644 --- a/app/animals.py +++ b/app/animals.py @@ -12,6 +12,41 @@ def get_red_panda(): red_panda = requests.get('https://some-random-api.ml/img/red_panda').json()['link'] return red_panda +def get_panda(): + panda = None + while not panda: + panda = requests.get('https://some-random-api.ml/img/panda').json()['link'] + return panda +def get_racoon(): + racoon = None + while not racoon: + racoon = requests.get('https://some-random-api.ml/img/racoon').json()['link'] + return racoon + +def get_fox(): + fox = None + while not fox: + fox = requests.get('https://some-random-api.ml/img/fox').json()['link'] + return fox + +def get_cat(): + cat = None + while not cat: + cat = requests.get('https://some-random-api.ml/img/cat').json()['link'] + return cat + +def get_kangaroo(): + kangaroo = None + while not kangaroo: + kangaroo = requests.get('https://some-random-api.ml/img/kangaroo').json()['link'] + return kangaroo + +def get_koala(): + koala = None + while not koala: + koala = requests.get('https://some-random-api.ml/img/koala').json()['link'] + return koala + def get_dog(): return random.choice([random_sheeb, random_dog, random_dog_reddit])() diff --git a/app/bot.py b/app/bot.py index 97a98903..6afd11c0 100755 --- a/app/bot.py +++ b/app/bot.py @@ -209,6 +209,41 @@ async def redpanda(ctx): import animals await ctx.send(animals.get_red_panda()) +@bot.command(name='panda') +async def panda(ctx): + + import animals + await ctx.send(animals.get_panda()) + +@bot.command(name='koala') +async def koala(ctx): + + import animals + await ctx.send(animals.get_koala()) +@bot.command(name='racoon') +async def racoon(ctx): + + import animals + await ctx.send(animals.get_racoon()) + +@bot.command(name='fox') +async def fox(ctx): + + import animals + await ctx.send(animals.get_fox()) + +@bot.command(name='cat') +async def cat(ctx): + + import animals + await ctx.send(animals.get_cat()) + +@bot.command(name='kangaroo') +async def kangaroo(ctx): + + import animals + await ctx.send(animals.get_kangaroo()) + @bot.command(name='dog') async def dog(ctx): diff --git a/app/help_methods.py b/app/help_methods.py index 4097f898..00b129dd 100644 --- a/app/help_methods.py +++ b/app/help_methods.py @@ -29,6 +29,14 @@ def get_help_message(method): 'Returns a random red panda photo', '\nUsage: !redpanda' ], + 'panda': [ + 'Returns a random panda photo', + '\nUsage: !panda' + ], + 'koala': [ + 'Returns a random koala photo', + '\nUsage: !koala' + ], 'clap': [ 'Returns the shittiest meme created by sassy girls on twitter this century', 'Usage: !clap some text to be meme\'mt' @@ -181,7 +189,7 @@ def get_help_embed(bot): 'fun': ['ffxiv', 'clap', 'youtube', 'excuse', 'greentext', 'lewd', 'message', 'meme', 'homepage', 'pout', 'roll', 'smug', 'quake', 'wink', 'verify'], 'util': ['ask', 'corona', 'emoji', '8ball', 'decide', 'info', 'icon', 'wallpaper', 'stock', 'tts', 'issue'], 'users': ['help', 'invite', 'purge', 'roles', 'source'], - 'pictures of animals': ['birb', 'redpanda,' 'dale', 'dog', 'rat'], + 'pictures of animals': ['birb', 'redpanda,' 'dale', 'dog', 'rat', 'koala', 'panda', 'racoon', 'fox', 'cat', 'kangaroo'], 'admin': ['cleanup'] }