-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f541f5f
commit ffef88b
Showing
2 changed files
with
307 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from twitch_monitor_discord_bot.command_processor import twitch_monitor_bot_command_list | ||
|
||
CMD_TITLE_UNDERLINE_CHAR = '-' | ||
|
||
for cmd in twitch_monitor_bot_command_list: | ||
# Print title | ||
title = "Command ``%s``" % cmd.word | ||
print(title) | ||
print(CMD_TITLE_UNDERLINE_CHAR * len(title)) | ||
|
||
# Print description | ||
txt = cmd.helptext.format(cmd.word) | ||
lines = txt.split('\n') | ||
indented = '\n '.join(lines) | ||
print('\n::\n\n ' + indented) | ||
|
||
if cmd.admin_only: | ||
print(" Only discord users registered in 'admin_users' in the bot config. file may use this command.\n") | ||
else: | ||
print(" All discord users may use this command.\n") |