@@ -62,13 +62,13 @@ def help_command(text, chan, conn, bot, notice, message, has_permission):
6262 commands .append (command )
6363
6464 # list of lines to send to the user
65- lines = formatting .chunk_str ("Here's a list of commands you can use: " + ", " . join (commands ))
65+ lines = formatting .chunk_str ("Here's a list of commands you can use: " + ", " .join (commands ))
6666
6767 for line in lines :
6868 if chan [:1 ] == "#" :
6969 notice (line )
7070 else :
71- #This is an user in this case.
71+ # This is an user in this case.
7272 message (line )
7373 notice ("For detailed help, use {}help <command>, without the brackets." .format (conn .config ["command_prefix" ]))
7474
@@ -118,7 +118,7 @@ def generatehelp(conn, bot, notice, has_permission):
118118 message = "{} Command list\n " .format (conn .nick )
119119 message += "------\n "
120120 for plugin in sorted (set (bot .plugin_manager .commands .values ()), key = attrgetter ("name" )):
121- # use set to remove duplicate commands (from multiple aliases), and sorted to sort by name
121+ # use set to remove duplicate commands (from multiple aliases), and sorted to sort by name
122122 command = plugin .name
123123 aliases = ""
124124 doc = bot .plugin_manager .commands [command ].doc
@@ -133,8 +133,8 @@ def generatehelp(conn, bot, notice, has_permission):
133133 aliases += alias + ", "
134134 aliases = aliases [:- 2 ]
135135 if doc :
136- doc = doc .replace ("<" ,"<" ).replace (">" ,">" ) \
137- .replace ("[" , "<" ).replace ("]" ,">" )
136+ doc = doc .replace ("<" , "<" ).replace (">" , ">" ) \
137+ .replace ("[" , "<" ).replace ("]" , ">" )
138138 if aliases :
139139 message += "**{} ({}):** {}\n \n " .format (command , aliases , doc )
140140 else :
@@ -146,10 +146,10 @@ def generatehelp(conn, bot, notice, has_permission):
146146 message = message [:- 2 ]
147147 message += " ( *Permission required:* {})\n \n " .format (permission )
148148 # toss the markdown text into a paste
149- #out = web.paste(message.encode('utf-8'), ext="md")
149+ # out = web.paste(message.encode('utf-8'), ext="md")
150150 docs = os .path .join (os .path .abspath (os .path .curdir ), "docs" )
151151 docs = os .path .join (docs , "user" )
152152 f = open (os .path .join (docs , "commands.md" ), 'w' )
153153 f .write (message )
154154 f .close ()
155- return # out
155+ return # out
0 commit comments