Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 4463668f87
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (22 sloc) 0.808 kB

MediaWiki IRC Bot Client

This is a simple interface to send text to a MediaWiki IRC Bot. This is not an IRC bot. To actually do anything with this, you need to run a MediaWiki bot, see http://www.mediawiki.org/wiki/Manual:MediaWiki-Recent_Changes-IRCBot.

In reality, all this does is send a simple UDP packet to the host and port specified

Installation

gem install mw-irc

Basic Usage

require 'mw-irc'

bot = MWIRC::Bot.new :host => 'example.com', :port => 51666
bot.send "Hello from Ruby!"

or even simpler,

require 'mw-irc'
MWIRC::Bot.send "Hello from Ruby!", 'example.com', 51666

Running a Bot

See http://www.mediawiki.org/wiki/Manual:MediaWiki-Recent_Changes-IRCBot

License

See LICENSE.txt

Jump to Line
Something went wrong with that request. Please try again.