mirror of https://codeberg.org/soteria/sox.git
feat: joke command description
This commit is contained in:
parent
da071903b9
commit
0da1b23eed
|
|
@ -5,7 +5,7 @@ import aiohttp
|
||||||
|
|
||||||
plugin = plugins.Plugin()
|
plugin = plugins.Plugin()
|
||||||
|
|
||||||
@plugin.slash_command()
|
@plugin.slash_command(description="tells a (maybe) funny joke")
|
||||||
async def joke(inter: disnake.CommandInteraction):
|
async def joke(inter: disnake.CommandInteraction):
|
||||||
async with aiohttp.ClientSession() as cs:
|
async with aiohttp.ClientSession() as cs:
|
||||||
async with cs.get("https://v2.jokeapi.dev/joke/Programming,Miscellaneous?blacklistFlags=nsfw,political&type=single") as resp:
|
async with cs.get("https://v2.jokeapi.dev/joke/Programming,Miscellaneous?blacklistFlags=nsfw,political&type=single") as resp:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue