Skip to content

Commit

Permalink
[Discord] Separate search subcommands as distinct commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jul 29, 2023
1 parent e1c021d commit 34553aa
Show file tree
Hide file tree
Showing 2 changed files with 392 additions and 52 deletions.
4 changes: 2 additions & 2 deletions Discord/cogs/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ async def uesp(self, ctx):
Random UESP page
[UESP](http://uesp.net/wiki/Main_Page)
"""
if command := ctx.bot.get_command("uesp random"):
if command := ctx.bot.get_command("search uesp random"):
await ctx.invoke(command)
else:
await ctx.embed_reply(
Expand All @@ -1080,7 +1080,7 @@ async def user(self, ctx):
@random.command(aliases = ["wiki"])
async def wikipedia(self, ctx):
"""Random Wikipedia article"""
if command := ctx.bot.get_command("wikipedia random"):
if command := ctx.bot.get_command("search wikipedia random"):
await ctx.invoke(command)
else:
await ctx.embed_reply(
Expand Down
Loading

0 comments on commit 34553aa

Please sign in to comment.