The Hello World! Bot for MediaWiki wikis.
A Ruby framework for MediaWiki API manipulation: MediaWiki::Gateway.
- Get framework:
$ gem install mediawiki-gateway- Clone project:
$ git clone https://github.com/SuriyaaKudoIsc/HWbot- Add it to your application's
Gemfile:
gem 'mediawiki-gateway'- Then execute the command:
$ bundleSimple page creation script:
require 'media_wiki'
mw = MediaWiki::Gateway.new('http://my-wiki.example/w/api.php')
mw.login('HWBot', 'pa$$w0rd')
mw.create('User:HWBot/sandbox', 'Hello world!', summary: 'My first page.')