Skip to content

acceso/gbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gbot is a simple and yet powerful IRC bot.


Its configuration file is based on events, these are some examples:


# Needed ping-pong event:
PING:::::n:PONG :${1}

# This logs every line, 'c' means "continue with more events":
ANY:::::c:log()

# Gives op to "user*" with any ident and host and it happens on every channel (#*),
# it also says hello to that user when joining to the channel:
JOIN:#*:user*!*@*::::MODE ${chan} +o ${nick}${SEP}PRIVMSG ${chan} :hi ${nick}!

# It joins automatically to #channel:
001::::::JOIN #channel

# This is probably the shortest CTCP implementation ever (4 lines, see full config):
CTCP:::^TIME:::NOTICE ${nick} :�TIME ${date} ${time}�

# We can make the bot speak for us:
PRIVMSG:::${pass}[ ]say[ ]+.+[ ]+.+:::PRIVMSG ${3} :${4*}

# It sends the output of "ls -l",
# 't' means it's done on a new thread.
PRIVMSG:#*::\\::t:${LSYSTEM ls -l}

# These two are chained. 
# The first one just matches if the second one has previously matched:
PRIVMSG:#*::\\[ ]*\\[ ]*\\?:${cond are > 1}${del are}::PRIVMSG ${chan} :sample2
PRIVMSG:#*::\\[ ]+\\[ ]*\\?:${set are = 1}::PRIVMSG ${chan} :sample1




About

Simple and powerful irc bot writen in c

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published