Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-royer committed Jun 21, 2022
1 parent 8c2b2da commit 8246fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wikibot.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ async def on_ready():
print("Online.")


@slash.slash(name="random articles", description="Random selection of articles from Wikipedia", guild_ids=guild_ids)
@slash.slash(name="random-articles", description="Random selection of articles from Wikipedia", guild_ids=guild_ids)
async def _random_article(ctx, number: int, language: str="en"):
wl.wikipedia.set_lang(language.split()[0])
await ctx.send(embed=make_embed(*wl.page_random(number)))


@slash.slash(name="advanced article", description="Get an article with an automatic correction on the title", guild_ids=guild_ids)
@slash.slash(name="advanced-article", description="Get an article with an automatic correction on the title", guild_ids=guild_ids)
async def _advanced_article(ctx, research: str, language: str="en"):
wl.wikipedia.set_lang(language.split()[0])
await ctx.send(embed=make_embed(*wl.page_read(research, True)))
Expand Down

0 comments on commit 8246fb5

Please sign in to comment.