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):
|
|
|
|
bot.send_message(source, "Got response")
|
2018-09-04 22:46:42 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
bot.start(processor, "settings.json")
|