Add !help command
This commit is contained in:
+8
-8
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user