# Path: tools/paste.py
# class Paste:
#     def gist(description, content, filename="ircgist.txt", public=False, logger=None):
#     def gist_multifile(description, files, public=False, logger=None):


from tools import paste
                return self.commands_gist_txt

        fname = "command help" + (".md" if markdown else ".txt")

        module_cmds = {}
        for command in self.commands.items():
            module = command[1]["module"]

            if module not in module_cmds:
                module_cmds[module] = []

            module_cmds[module].append(command[0])

        module_cmds = sorted(module_cmds.items())
        pastestr = ""
        if markdown:
            for mod in module_cmds:
                pastestr += "**From the module `{}`:**  \n".format(mod[0])
                for cmds in mod[1]:
                    pastestr += ("  " + self.getCommandHelpMarkdown(cmds))
                pastestr += "\n\n"

        else:
            for mod in module_cmds:
                pastestr += "From the module {}:\n".format(mod[0])
                for cmds in mod[1]:
                    pastestr += ("  " + self.getCommandHelp(cmds) + "\n")
                pastestr += "\n"

        if markdown:

# Path: tools/paste.py
# class Paste:
#     def gist(description, content, filename="ircgist.txt", public=False, logger=None):
#     def gist_multifile(description, files, public=False, logger=None):


# Path: core/commandhelp.py
from tools import paste

                return self.commands_gist_txt

        fname = "command help" + (".md" if markdown else ".txt")

        module_cmds = {}
        for command in self.commands.items():
            module = command[1]["module"]

            if module not in module_cmds:
                module_cmds[module] = []

            module_cmds[module].append(command[0])

        module_cmds = sorted(module_cmds.items())
        pastestr = ""
        if markdown:
            for mod in module_cmds:
                pastestr += "**From the module `{}`:**  \n".format(mod[0])
                for cmds in mod[1]:
                    pastestr += ("  " + self.getCommandHelpMarkdown(cmds))
                pastestr += "\n\n"

        else:
            for mod in module_cmds:
                pastestr += "From the module {}:\n".format(mod[0])
                for cmds in mod[1]:
                    pastestr += ("  " + self.getCommandHelp(cmds) + "\n")
                pastestr += "\n"

        if markdown:

            self.commands_gist_md = paste.Paste.gist("List of commands.", pastestr, fname, logger=self.logger)