Skip to content
This repository was archived by the owner on Mar 28, 2021. It is now read-only.

Commit 77fe40e

Browse files
[BetterHelp] Fixed sum shit
1 parent f641ec5 commit 77fe40e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎betterhelp/betterhelp.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from discord.ext import commands
33
import asyncio
44
import inspect
5+
import os
56

67
class CogNotFound(Exception):
78
pass
@@ -65,7 +66,8 @@ async def help(self, ctx, *, command_or_cog=None):
6566
found = True
6667
break
6768
else: # no idea what the permission is
68-
found = True
69+
found = False
70+
print("Could not find permission, skipping...", self.bot.commands[cmd].checks)
6971
if not found:
7072
continue
7173
commands[cog].append(cmd)
@@ -268,8 +270,6 @@ async def send_final_help(self, ctx, command, params, help, subcommands):
268270
aliases = self.bot.commands[command.split()[0]].aliases
269271
elif len(command.split()) == 2:
270272
aliases = self.bot.commands[command.split()[0]].commands[command.split()[1]].aliases
271-
elif len(command.split()) == 3:
272-
aliases = self.bot.commands[command.split()[0]].commands[command.split()[1]].commands[command.split()[2]].aliases
273273
else:
274274
aliases = [] # very unlikely that this will ever be used ¯\_(ツ)_/¯
275275
if len(command.split()) == 1:

0 commit comments

Comments
 (0)