#My command won't take options .

1 messages · Page 1 of 1 (latest)

candid rampart
#

I have a Wikipedia command that takes article name as input but for some reason it isn't working. Confusing thing is that when I run it from me terminal it works fine but won't work when I ran it from dedicated discord server .

#

This is when I run it from my PC. it works fine

wild prairie
#

We gonna need code or something Mate. We can’t help with that info.

#

And maybe a pip freeze 🥶

candid ledge
#

check if the host has up to date files

candid rampart
candid rampart
candid rampart
#
'''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

still sentinelBOT
#

Here's the slash options example.

torn girder
#

you can try these out

#

I am assuming you have a problem related to fields

#

also you don't need to put the "*" in the function