#My command won't take options .
1 messages · Page 1 of 1 (latest)
We gonna need code or something Mate. We can’t help with that info.
And maybe a pip freeze 🥶
check if the host has up to date files
I will send the code
Yeah, lemme check that
'''Wikipedia'''
wiki= bot.create_group(name="wikipedia", description="Your Personal Wikipedia")
@wiki.command(name="summary", description="Provides Short summary from Wikipedia")
async def summary(ctx, *, word :str, line=4):
try:
wikiResult=wikipedia.summary(word, sentences=line)
picURL=picwiki.get_wiki_image(word)
embed=discord.Embed(title=word, description=wikiResult)
embed.set_image(url=picURL)
await ctx.respond(embed=embed, delete_after=120)
except Exception as e:
await ctx.respond("Not Found", delete_after=10)
@wiki.command(name="lookup", description="Search Wikipedia Titles")
async def lookup(ctx,*, name:str):
wikiResult=wikipedia.search(name)
wikiResult='\n'.join(wikiResult)
embed=discord.Embed(title="Wikipedia Results", description=wikiResult)
await ctx.respond(embed=embed, delete_after=30)
@wild prairie
It used to work perfectly, didn't even change anything and for love of god I can't find the issue
Here's the slash options example.