config.py 877 B

123456789101112131415161718192021222324
  1. HOST = "irc.freenode.net"
  2. PORT = 7000
  3. NICK = "ttlbot"
  4. IDENT = "ttlbot"
  5. REALNAME = "Biergaizi's titlebot"
  6. CHANNELS = ["#wecase", "#kneecircle", "#botwar"]
  7. ADMINS = ["biergaizi", "StarBrilliant"] # empty list means disable permission checking
  8. HEADERS = [("Accept-Charset", "utf-8, iso-8859-1"),
  9. ("Accept-Language", "zh-cn, zh-hans, zh-tw, zh-hant, zh, en-us, en-gb, en"),
  10. ("Range", "bytes=0-16383"),
  11. ("User-Agent", "Mozilla/5.0 (compatible; Titlebot; like IRCbot; +https://github.com/biergaizi/titlebot)"),
  12. ("X-Forwarded-For", "10.2.0.101"),
  13. ("X-moz", "prefetch"),
  14. ("X-Prefetch", "yes"),
  15. ("X-Requested-With", "Titlebot")]
  16. IGNORED_URLS = ["https://app.gumble.tk/img/",
  17. "https?:/*git.io(/|$)",
  18. "http://weibo.com/[0-9]+/[a-zA-Z0-9]{9}"]
  19. I2P_USER = ""
  20. I2P_PASSWORD = ""