We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e34b0eb + e45eac6 commit e4ff029Copy full SHA for e4ff029
1 file changed
plugins/core/help.py
@@ -4,7 +4,7 @@
4
from operator import attrgetter
5
6
from cloudbot import hook
7
-from cloudbot.util import formatting
+from cloudbot.util import formatting, web
8
9
10
@hook.command("help", autohelp=False)
@@ -147,10 +147,4 @@ def generatehelp(conn, bot):
147
message = message[:-2]
148
message += " ( *Permission required:* {})\n\n".format(permission)
149
# toss the markdown text into a paste
150
- # out = web.paste(message.encode('utf-8'), ext="md")
151
- docs = os.path.join(os.path.abspath(os.path.curdir), "docs")
152
- docs = os.path.join(docs, "user")
153
- f = open(os.path.join(docs, "commands.md"), 'w')
154
- f.write(message)
155
- f.close()
156
- return # out
+ return web.paste(message)
0 commit comments