Popularity
4.2
Declining
Activity
0.0
Stable
35
3
5

Programming language: Elixir
License: MIT License
Tags: Networking    
Latest version: v0.5.0

chatty alternatives and similar packages

Based on the "Networking" category.
Alternatively, view chatty alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of chatty or a related project?

Add another 'Networking' Package

README

Chatty

A basic IRC client that is most useful for writing a bot.

Installation

Add Chatty as a dependency to your Mix project:

def application do
  [applications: [:chatty]]
end

defp deps do
  [{:chatty, github: "alco/chatty"}]
end

Usage

You need to set the following environment parameters for the :chatty app:

  • :nickname – the nick to use when connecting and identifying with NickServ
  • :channels – a list of channel names to join upon connect
  • :password (optional) – when set, Chatty will identify with NickServ using this password

Chatty's behaviour is customized by means of adding hooks that get invoked on each incoming message. A ping hook is included as an example. Set it up as follows:

iex> Chatty.add_hook :ping, &Chatty.Hooks.PingHook.run/2, in: :text, direct: true
:ok

Now, whenever Chatty sees the message <nickname>: ping, it will send a reply from the set of predefined ones back to the sender:

02:05:35      @true_droid | beamie_test: ping
02:05:35      beamie_test | true_droid: pong

License

This software is licensed under [the MIT license](LICENSE).


*Note that all licence references and agreements mentioned in the chatty README section above are relevant to that project's source code only.