babili-bot/app.py

12 lines
290 B
Python
Raw Permalink Normal View History

2018-09-04 22:46:42 +00:00
#!/usr/bin/env python3
from bot import Bot
bot = Bot("127.0.0.1", 6667, "BabiliBot|py", ["#bots"])
2018-09-05 00:52:04 +00:00
def processor(name, source, response):
2018-09-05 02:08:00 +00:00
#bot.send_message(source, "Got response")
print(name, source, response)
2018-09-04 22:46:42 +00:00
if __name__ == "__main__":
bot.start(processor, "settings.json")