Well, you found me. Congratulations. Was it worth it?
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
471 B

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. #!/usr/bin/env python
  2. import sys
  3. import time
  4. from threading import Thread
  5. from bot import Bot
  6. glados = Bot(
  7. ('irc.planet-casio.com', 6697),
  8. ('127.0.0.1', 5555),
  9. ["#general", "#glados"]
  10. )
  11. @glados.irc.on(lambda m: "Hello" in m.text)
  12. def say_hello(msg):
  13. glados.irc.send(msg.to, f"Nice to see you, {msg.author}")
  14. @glados.v5.on(lambda c, m: True)
  15. def announce(channels, message):
  16. for c in channels:
  17. glados.irc.send(c, message)
  18. glados.start()