libircbot
library providing a framework for implementing an IRC bot
Loading...
Searching...
No Matches
ircbot.h File Reference

declarations for the main IrcBot API and related classes More...

#include <ircbot/decl.h>

Go to the source code of this file.

Macros

#define ORIGIN_PRIVATE   ":"
 the origin is any private message
 
#define ORIGIN_CHANNEL   "#"
 the origin is any channel
 

Typedefs

typedef void(* IrcBotHandler) (IrcBotEvent *event)
 Handler for a bot event. More...
 

Enumerations

enum  IrcBotEventType {
  IBET_BOTCOMMAND , IBET_PRIVMSG , IBET_CONNECTED , IBET_CHANJOINED ,
  IBET_JOINED , IBET_PARTED
}
 Type of a bot event. More...
 

Detailed Description

declarations for the main IrcBot API and related classes

Typedef Documentation

◆ IrcBotHandler

typedef void(* IrcBotHandler) (IrcBotEvent *event)

Handler for a bot event.

Will be executed on a worker thread.

Parameters
eventthe event to handle

Enumeration Type Documentation

◆ IrcBotEventType

Type of a bot event.

ircbot.h <ircbot/ircbot.h>

Enumerator
IBET_BOTCOMMAND 

A bot command, !-prefixed or sent private.

IBET_PRIVMSG 

A generic PRIVMSG (channel or private)

IBET_CONNECTED 

Connected to IRC server.

IBET_CHANJOINED 

Channel joined by bot.

IBET_JOINED 

Channel joined by other user.

IBET_PARTED 

Channel left by other user.