A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
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.

irc.py 831 B

12345678910111213141516171819202122232425
  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. # hardcoded hostnames of users with certain permissions
  18. OWNERS = ["wikipedia/The-Earwig"] # can use owner-only commands (!restart and !git)
  19. ADMINS = ["wikipedia/The-Earwig", "wikipedia/LeonardBloom"] # can use high-risk commands, e.g. !op