All Projects → litaio → lita-irc

litaio / lita-irc

Licence: MIT License
An IRC adapter for Lita.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to lita-irc

lita-hipchat
A HipChat adapter for Lita.
Stars: ✭ 37 (+94.74%)
Mutual labels:  chatops, lita, lita-adapter
TwitchPy
This is a package you can use to connect with the Twitch API, manage a channel, create bots, etc
Stars: ✭ 22 (+15.79%)
Mutual labels:  irc, irc-bot
CloudBot
CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
Stars: ✭ 57 (+200%)
Mutual labels:  irc, irc-bot
teleirc
Go implementation of a Telegram <=> IRC bridge for use with any IRC channel and Telegram group
Stars: ✭ 112 (+489.47%)
Mutual labels:  irc, irc-bot
st2chatops
Packaging environment for building StackStorm chatops native packages
Stars: ✭ 26 (+36.84%)
Mutual labels:  chatops, irc
Limnoria
A robust, full-featured, and user/programmer-friendly Python IRC bot, with many existing plugins. Successor of the well-known Supybot.
Stars: ✭ 578 (+2942.11%)
Mutual labels:  irc, irc-bot
eggdrop-docker
No description or website provided.
Stars: ✭ 20 (+5.26%)
Mutual labels:  irc, irc-bot
Lita
ChatOps for Ruby.
Stars: ✭ 1,663 (+8652.63%)
Mutual labels:  chatops, lita
lita-digitalocean
A Lita handler for managing DigitalOcean services.
Stars: ✭ 25 (+31.58%)
Mutual labels:  chatops, lita
chef-lita
A Chef cookbook for installing Lita.
Stars: ✭ 17 (-10.53%)
Mutual labels:  chatops, lita
irc.dart
Dart IRC Library
Stars: ✭ 45 (+136.84%)
Mutual labels:  irc, irc-bot
energymech
EnergyMech IRC Bot
Stars: ✭ 24 (+26.32%)
Mutual labels:  irc, irc-bot
phenny
My fork of phenny lives on at https://github.com/vtluug/phenny. This tree is now unmaintained.
Stars: ✭ 15 (-21.05%)
Mutual labels:  irc, irc-bot
lita-confirmation
A Lita extension to require confirmation for commands.
Stars: ✭ 21 (+10.53%)
Mutual labels:  chatops, lita
CloudBot
CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
Stars: ✭ 69 (+263.16%)
Mutual labels:  irc, irc-bot
insobot
C99 modular IRC bot with markov chains
Stars: ✭ 71 (+273.68%)
Mutual labels:  irc, irc-bot
bmotion
An Artificial Stupidity script for eggdrop bots
Stars: ✭ 58 (+205.26%)
Mutual labels:  irc, irc-bot
lita-google-images
A Lita handler for fetching images from Google.
Stars: ✭ 16 (-15.79%)
Mutual labels:  chatops, lita
Yetibot
🤖 Extreme chatops bot for Slack and IRC 🔧 New contributors welcome 🏗
Stars: ✭ 311 (+1536.84%)
Mutual labels:  chatops, irc
Cardinal
A Python IRC bot, designed to make adding functionality quick and simple.
Stars: ✭ 92 (+384.21%)
Mutual labels:  irc, irc-bot

lita-irc

Gem Version Build Status

lita-irc is an adapter for Lita that allows you to use the robot with IRC.

Installation

Add lita-irc to your Lita instance's Gemfile:

gem "lita-irc"

Configuration

Required attributes

  • server (String) - The name of the IRC server Lita should connect to.
  • channels (Array) - An array of channels Lita should join upon connection.

Optional attributes

  • user (String) - The username for Lita's IRC account. Default: "Lita".
  • password (String) - The password for Lita's IRC account. Default: nil.
  • realname (String) - The "real name" field for Lita's IRC account. Default: "Lita".
  • log_level (Symbol) - Sets the log level for Cinch's loggers. By default, Cinch's loggers are disabled. Default: nil.

Additional Cinch options

Under the hood, lita-irc uses Cinch for the IRC connection. Cinch has several configuration options that you may want to set. To do this, assign a proc/lambda to config.adapters.irc.cinch. lita-irc will yield the Cinch configuration object to the proc, so you can configure it as you'd like. Note that for the options listed in the sections above, those values will overwrite anything set in the proc.

Note: config.robot.name is used as Lita's IRC nickname. The nick attribute of the Cinch options is overwritten with this value.

config.robot.admins

Each IRC user has a unique ID that Lita generates and stores the first time that user is encountered. To populate the config.robot.admins attribute, you'll need to use these IDs for each user you want to mark as an administrator. If you're using Lita version 4.1 or greater, you can get a user's ID by sending Lita the command users find NICKNAME_OF_USER.

Example

Lita.configure do |config|
  config.robot.name = "Lita"
  config.robot.adapter = :irc
  config.robot.admins = ["eed844bf-2df0-4091-943a-7ee05ef36f4a"]
  config.adapters.irc.server = "irc.freenode.net"
  config.adapters.irc.channels = ["#litabot"]
  config.adapters.irc.user = "Lita"
  config.adapters.irc.realname = "Lita"
  config.adapters.irc.password = "secret"
  config.adapters.irc.cinch = lambda do |cinch_config|
    cinch_config.max_reconnect_delay = 123
  end
end

Events

The IRC adapter will trigger these events:

Event When Payload
:connected connected to IRC None
:disconnected disconnected from IRC None
:user_joined_room a user joins a room user: Lita::User, room: Lita::Room
:user_parted_room a user parts a room user: Lita::User, room: Lita::Room
:user_disconnected a user disconnects user: Lita::User
:user_nick_changed a user changes nick user: Lita::User, old_user: Lita::User

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].