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.

28 lines
434 B

  1. # -*- coding: utf-8 -*-
  2. """
  3. EarwigBot's Wiki Toolset: Constants
  4. This module defines some useful constants.
  5. """
  6. # Default namespace IDs
  7. NS_MAIN = 0
  8. NS_TALK = 1
  9. NS_USER = 2
  10. NS_USER_TALK = 3
  11. NS_PROJECT = 4
  12. NS_PROJECT_TALK = 5
  13. NS_FILE = 6
  14. NS_FILE_TALK = 7
  15. NS_MEDIAWIKI = 8
  16. NS_MEDIAWIKI_TALK = 9
  17. NS_TEMPLATE = 10
  18. NS_TEMPLATE_TALK = 11
  19. NS_HELP = 12
  20. NS_HELP_TALK = 13
  21. NS_CATEGORY = 14
  22. NS_CATEGORY_TALK = 15
  23. NS_SPECIAL = -1
  24. NS_MEDIA = -2