Esempio n. 1
0
    def help(self, params=None, **kwargs):
        """Learn how to use active commands (ex: .help <command>)"""

        if params:
            doc = self._find_doc_string(params)
            if doc:
                self.irc.reply(doc)
            else:
                self.irc.reply("No help available for %s" % params)
        else:
            self.irc.reply(self.help.__doc__)
            self.irc.reply("Active Commands: %s" % irc.active_commands())
            self.irc.reply("Active Keywords: %s" % irc.active_keywords())
Esempio n. 2
0
    def help(self, params=None, **kwargs):
        """Learn how to use active commands (ex: .help <command>)"""

        if params:
            doc = self._find_doc_string(params)
            if doc:
                self.irc.reply(doc)
            else:
                self.irc.reply("No help available for %s" % params)
        else:
            self.irc.reply(self.help.__doc__)
            self.irc.reply("Active Commands: %s" % irc.active_commands())
            self.irc.reply("Active Keywords: %s" % irc.active_keywords())
Esempio n. 3
0
 def test_active_keywords(self):
     active_keywords = irc.active_keywords()
     self.assertTrue(isinstance(active_keywords, str))
Esempio n. 4
0
 def test_active_keywords(self):
     active_keywords = irc.active_keywords()
     self.assertTrue(isinstance(active_keywords, str))