def declare():
        return {"ultimatetruth": "privmsg"}

def callback(self):

    if self.channel.startswith('#'):
                return self.msg(channel, "RielDtok is a tranny")

class api:
        def msg(self, channel, text):
            return "[%s] %s" % (channel, text)

if __name__ == "__main__":
        api = api()
        u = "joe!username@hostmask"
        c = '#test'

        if callback(api, '', True, command="ultimatetruth", msg="^ultimatetruth", channel=c, user=u) != "[%s] RielDtok is a tranny" % (c):
                exit(1)

def declare():
        return {"ultimatetruth": "privmsg"}

def callback(self):

    if self.channel.startswith('#'):
                return self.msg(channel, "RielDtok is a tranny")

class api:
        def msg(self, channel, text):
            return "[%s] %s" % (channel, text)

if __name__ == "__main__":
        api = api()
        u = "joe!username@hostmask"
        c = '#test'

        setattr(api, 'isop', True)
        setattr(api, 'type', 'privmsg')
        setattr(api, 'command', 'ultimatetruth')
        setattr(api, 'user', 'joe!username@hostmask')
        setattr(api, 'channel', '#test')

        if callback(api) != "[%s] RielDtok is a tranny" % (c):
                exit(1)

update testing