A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
432 B

  1. # -*- coding: utf-8 -*-
  2. # Check what events on IRC we can respond to.
  3. from irc.commands import test, git
  4. def check(actions, data, hook):
  5. if hook == "join":
  6. pass
  7. if hook == "msg_private":
  8. pass
  9. if hook == "msg_public":
  10. pass
  11. if hook == "msg":
  12. if data.msg == "!test":
  13. test.call(actions, data)
  14. if data.msg.startswith("!git"):
  15. git.call(actions, data)