Project

em-irc-bot

0.0
No commit activity in last 3 years
No release in over 3 years
IRC bot framework for EventMachine
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

This is a (presently) bare-bones framework for writing an IRC bot, using EventMachine behind the scenes.

Why EM?

Why not?

Basic Usage

Create a new bot and connect to a server:

require 'em/irc_bot'

bot = EM::IrcBot.new("fred",
                     server: "irc.example.com",
                     port: 6667,
                     channels: ["#botz"])

Say some stuff:

bot.say("#botz", "'sup, bots?")

React to things other people say:

bot.on(/^fred:/) do |msg|
  msg.reply "You talkin' to me?"
end

For more info, see the docs for {EM::IrcBot}.