Adding a bunch of animals to the list
This commit is contained in:
parent
8b1b51ab08
commit
5f94e43ec7
@ -12,6 +12,41 @@ def get_red_panda():
|
|||||||
red_panda = requests.get('https://some-random-api.ml/img/red_panda').json()['link']
|
red_panda = requests.get('https://some-random-api.ml/img/red_panda').json()['link']
|
||||||
return red_panda
|
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():
|
def get_dog():
|
||||||
return random.choice([random_sheeb, random_dog, random_dog_reddit])()
|
return random.choice([random_sheeb, random_dog, random_dog_reddit])()
|
||||||
|
|
||||||
|
35
app/bot.py
35
app/bot.py
@ -209,6 +209,41 @@ async def redpanda(ctx):
|
|||||||
import animals
|
import animals
|
||||||
await ctx.send(animals.get_red_panda())
|
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')
|
@bot.command(name='dog')
|
||||||
async def dog(ctx):
|
async def dog(ctx):
|
||||||
|
|
||||||
|
@ -29,6 +29,14 @@ def get_help_message(method):
|
|||||||
'Returns a random red panda photo',
|
'Returns a random red panda photo',
|
||||||
'\nUsage: !redpanda'
|
'\nUsage: !redpanda'
|
||||||
],
|
],
|
||||||
|
'panda': [
|
||||||
|
'Returns a random panda photo',
|
||||||
|
'\nUsage: !panda'
|
||||||
|
],
|
||||||
|
'koala': [
|
||||||
|
'Returns a random koala photo',
|
||||||
|
'\nUsage: !koala'
|
||||||
|
],
|
||||||
'clap': [
|
'clap': [
|
||||||
'Returns the shittiest meme created by sassy girls on twitter this century',
|
'Returns the shittiest meme created by sassy girls on twitter this century',
|
||||||
'Usage: !clap some text to be meme\'mt'
|
'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'],
|
'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'],
|
'util': ['ask', 'corona', 'emoji', '8ball', 'decide', 'info', 'icon', 'wallpaper', 'stock', 'tts', 'issue'],
|
||||||
'users': ['help', 'invite', 'purge', 'roles', 'source'],
|
'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']
|
'admin': ['cleanup']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user