A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

irc.py 1016 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. # EarwigBot Configuration File
  3. # This file contains information that the bot uses to connect to IRC.
  4. # our main (front-end) server's hostname and port
  5. HOST = "irc.freenode.net"
  6. PORT = 6667
  7. # our watcher server's hostname, port, and RC channel
  8. WATCHER_HOST = "irc.wikimedia.org"
  9. WATCHER_PORT = 6667
  10. WATCHER_CHAN = "#en.wikipedia"
  11. # our nick, ident, and real name, used on both servers
  12. NICK = "EarwigBot"
  13. IDENT = "earwigbot"
  14. REALNAME = "[[w:en:User:EarwigBot]]"
  15. # channels to join on main server's startup
  16. CHANS = ["##earwigbot", "##earwig", "#wikipedia-en-afc"]
  17. AFC_CHANS = ["#wikipedia-en-afc"] # report recent AfC changes/give AfC status messages upon join
  18. BOT_CHANS = ["##earwigbot", "#wikipedia-en-afc"] # report edits containing "!earwigbot"
  19. # hardcoded hostnames of users with certain permissions
  20. OWNERS = ["wikipedia/The-Earwig"] # can use owner-only commands (!restart and !git)
  21. ADMINS = ["wikipedia/The-Earwig", "wikipedia/LeonardBloom"] # can use high-risk commands, e.g. !op