Adding !dale
This commit is contained in:
parent
e7c810e177
commit
3d20739859
@ -1,5 +1,6 @@
|
|||||||
import random
|
import random
|
||||||
import requests
|
import requests
|
||||||
|
import urllib
|
||||||
|
|
||||||
import get_from_reddit
|
import get_from_reddit
|
||||||
|
|
||||||
@ -62,3 +63,11 @@ def random_bird_reddit():
|
|||||||
|
|
||||||
def get_rat():
|
def get_rat():
|
||||||
return get_from_reddit.get_image('rats')
|
return get_from_reddit.get_image('rats')
|
||||||
|
|
||||||
|
|
||||||
|
def dale():
|
||||||
|
return "https://luker.gq/dale/" + urllib.parse.quote(
|
||||||
|
random.choice(requests.get(
|
||||||
|
'https://luker.gq/dale').json()
|
||||||
|
)['name']
|
||||||
|
)
|
@ -214,6 +214,12 @@ async def dog(ctx):
|
|||||||
import animals
|
import animals
|
||||||
await ctx.send(animals.get_dog())
|
await ctx.send(animals.get_dog())
|
||||||
|
|
||||||
|
@bot.command(name='dale')
|
||||||
|
async def dale(ctx):
|
||||||
|
|
||||||
|
import animals
|
||||||
|
await ctx.send(animals.dale())
|
||||||
|
|
||||||
@bot.command(name='define')
|
@bot.command(name='define')
|
||||||
async def define(ctx):
|
async def define(ctx):
|
||||||
|
|
||||||
|
@ -41,6 +41,10 @@ def get_help_message(method):
|
|||||||
'Pulls the latest corona virus stats per state from Johns Hopkins data',
|
'Pulls the latest corona virus stats per state from Johns Hopkins data',
|
||||||
'Usage: !corona <some US state>\neg: !corona Colorado'
|
'Usage: !corona <some US state>\neg: !corona Colorado'
|
||||||
],
|
],
|
||||||
|
'dale': [
|
||||||
|
'Returns a random photo of dale',
|
||||||
|
'\nUsage: !dale'
|
||||||
|
],
|
||||||
'decide': [
|
'decide': [
|
||||||
'Dragon-bot will help make the tough decisions for you',
|
'Dragon-bot will help make the tough decisions for you',
|
||||||
' If there is only one option, it will give you a yes or no',
|
' If there is only one option, it will give you a yes or no',
|
||||||
@ -134,6 +138,10 @@ def get_help_message(method):
|
|||||||
'Returns player stats for a quake champions account\n'
|
'Returns player stats for a quake champions account\n'
|
||||||
'Usage: !quake <player name>'
|
'Usage: !quake <player name>'
|
||||||
],
|
],
|
||||||
|
'rat': [
|
||||||
|
'Returns a random rat photo',
|
||||||
|
'\nUsage: !rat'
|
||||||
|
],
|
||||||
'roll': [
|
'roll': [
|
||||||
'Rolls N number of Y sided die\n',
|
'Rolls N number of Y sided die\n',
|
||||||
'Usage: !roll 3d20\n',
|
'Usage: !roll 3d20\n',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user