A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

irc_config.py 981 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
  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