Add !help command

This commit is contained in:
2021-04-19 04:18:40 +00:00
parent bdfec0f9a4
commit 87bb638270
3 changed files with 35 additions and 14 deletions
+8 -8
View File
@@ -6,11 +6,11 @@ with open('game.py', 'r') as f:
HELP_LINES.append(line.strip()[3:])
for line in HELP_LINES:
if ' - ' in line:
command, doc = line.split(' - ')
print('`{}` - {}\n'.format(command, doc))
else:
print(line)
print()
if __name__ == '__main__':
for line in HELP_LINES:
if ' - ' in line:
command, doc = line.split(' - ')
print('`{}` - {}\n'.format(command, doc))
else:
print(line)
print()