A Python robot that edits Wikipedia and interacts with people over IRC https://en.wikipedia.org/wiki/User:EarwigBot
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. # our server's hostname
  3. HOST = "irc.freenode.net"
  4. # our server's port
  5. PORT = 6667
  6. # our nick
  7. NICK = "EarwigBot|2"
  8. # our ident
  9. IDENT = "earwigbot"
  10. # our real name
  11. REALNAME = "[[w:en:User:EarwigBot]]"
  12. # channel to join on startup
  13. CHANS = ["##earwigbot"]
  14. # sleep this number of seconds in between API calls and messages sent to IRC
  15. THROTTLE = 1
  16. # hostnames of users who can update/restart the bot with !update
  17. ADMINS = ["wikipedia/The-Earwig"]