The IrcBot class can connect to a channel on an IRC network. Users on the same network can send messages to the bot that are parsed by message handlers. The included handlers read digital/analog inputs and write digital outputs or echo messages back to the command sender/channel. Users can write their own message handlers inheriting from the MessageHandler class to perform different actions.

Embed: (wiki syntax)

« Back to documentation index

EchoHandler Class Reference

EchoHandler Class Reference

A handler to echo back any messages of the form "ECHO <x>". More...

#include <IrcMessageHandlers.h>

Inherits MessageHandler.

Public Member Functions

IrcMessage handle (IrcMessage msg)
 Reply to "ECHO <x>" with "<x>".

Detailed Description

A handler to echo back any messages of the form "ECHO <x>".

Definition at line 60 of file IrcMessageHandlers.h.


Member Function Documentation

IrcMessage handle ( IrcMessage  msg ) [virtual]

Reply to "ECHO <x>" with "<x>".

Reimplemented from MessageHandler.

Definition at line 99 of file IrcMessageHandlers.cpp.