Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import asyncio
- from asyncirc import irc
- bot = irc.connect("chat.freenode.net", 6667, use_ssl=False)
- bot.register("NativeBot", "NativeBot", "NativeBot")
- bot.join("#nativebot")
- @bot.on("message")
- def incoming_message(parsed, user, target, text):
- bot.say(target, "{}: you said {}".format(user.nick, text))
- if __name__ == '__main__':
- asyncio.get_event_loop().run_forever()
Add Comment
Please, Sign In to add comment