Adding /corgi for preston
This commit is contained in:
parent
80ca13051d
commit
681b47a2a6
@ -5,6 +5,14 @@ import requests
|
||||
import get_from_reddit
|
||||
|
||||
|
||||
def get_corgi():
|
||||
return get_from_reddit.get_image(
|
||||
[
|
||||
"corgi",
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
def get_red_panda():
|
||||
red_panda = None
|
||||
while not red_panda:
|
||||
@ -102,6 +110,11 @@ def random_dog_reddit():
|
||||
"vizsla",
|
||||
"zoomies",
|
||||
"shiba",
|
||||
"swedishvallhund",
|
||||
"puppy101",
|
||||
"lookatmydog",
|
||||
"dogs",
|
||||
"jackrussellterrier",
|
||||
]
|
||||
)
|
||||
|
||||
|
@ -86,6 +86,12 @@ class AnimalFunctions(commands.Cog):
|
||||
async def rat(self, ctx: commands.Context):
|
||||
await ctx.respond(animals.get_rat())
|
||||
|
||||
@commands.slash_command(
|
||||
guild_ids=None, name="corgi", description="Posts a photo of a corgi"
|
||||
)
|
||||
async def corgi(self, ctx: commands.Context):
|
||||
await ctx.respond(animals.get_corgi())
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(AnimalFunctions(bot))
|
||||
|
Loading…
x
Reference in New Issue
Block a user