Skip to content

Pywikibot config for User:BeeBot

License

Notifications You must be signed in to change notification settings

miraheze/pywikibot-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pywikibot config

Pywikibot config for User:BeeBot. Contains crontab config and family configuration.

Infrastructure Specialists have push access. This repo is pulled by puppet automatically.

Adding new crontab entries

In cron.yaml, crontab entries for your wiki are added as arrays in a top level key, where that top level key must be your wiki's database name, and each individual array results in a crontab entry.

For example:

# This becomes 0 0 * * * /usr/local/bin/pywikibot archivebot Template:Autoarchive/config -lang:metawiki
metawiki: # your wiki's database name
  - name: 'archivebot-job' # MUST BE UNIQUE, no other crontab entry for your wiki must have the same name
    ensure: 'present' # present to enable, absent to disable
    script: 'archivebot' # Pywikibot script you want to run
    scriptparams: 'Template:Autoarchive/config' # parameters for that script, set to '' if there are no parameters
    hour: '0' # regular crontab parameters
    minute: '0'
    month: '*'
    monthday: '*'
    weekday: '*'

All parameters from the example must be present!

Adding langs

All wikis are part of the wikitide family in the Pywikibot config. Langs are used to select wikis based on their database name, as it is a unique identifier for wikis on Miraheze.

They only have one parameter: domain, which is the domain for the wiki.

Example:

metawiki:
  domain: 'meta.miraheze.org'

License

Licensed under the GPL 3.0 or later.

About

Pywikibot config for User:BeeBot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages