User:Zam-Bot/chat.js/2

import chatbot class MyBot(chatbot.ChatBot): def __init__(self, username, password, site): chatbot.ChatBot__init__(self,                                        username,                                         password,                                         site) def on_kick(self, c, e): c.send("Oh dear!") def on_ban(self, c, e): c.send("Oh no! This is not good!") if __name__ == '__main__': bot = MyBot("MyUsername", "MyPassword", "http://mywiki.wikia.com") bot.start