예제 #1
0
 def join(self, channel):
     """Joins <channel> (<str>)."""
     connector = hclib.HackChat(self._handle, self._config["name"], channel,
                                self._config["password"],
                                self._config["url"])
예제 #2
0
 def start_hack_chat(self):
     self.hackchat = hclib.HackChat(self.on_hack_message, self.username,
                                    self.hack_chat_channel)
예제 #3
0
def admin(method, username, channel="xjoi"):
    mod = hclib.HackChat(admin, "MinecraftFuns", channel, "mcfuns,mcworld",
                         "ws://127.0.0.1:6060/chat-ws", True)
    if method == "ban":
        mod.ban("username")