remove obsoleted custom help function from code. replaced by builtin help from discord.py

This commit is contained in:
2021-08-11 13:30:57 +02:00
parent fe53e135f9
commit 9faa3da29d
3 changed files with 0 additions and 63 deletions

View File

@@ -1,19 +0,0 @@
keywords = ['roll']
def help(keyword=''):
"""Filter for general help or specific keyword help."""
if not keyword:
file = open('help/help.md')
contents = file.read()
return format((contents))
if keyword[0]:
keyword = str.lower(keyword)
if keyword in keywords:
document = 'help/help_' + keyword + '.md'
file = open(document, 'r')
contents = file.read()
return format((contents))
else:
file = open('help/help.md')
contents = file.read()
return format((contents))