Go to file
raylu 2cc4781249 Move commands into cmd-*.go files 2010-10-26 21:30:00 -04:00
irc Properly export Debug and add Network to Conn 2010-10-15 18:11:14 -04:00
.gitignore !add, !flags, !topic 2010-10-16 15:38:40 -04:00
Makefile Move commands into cmd-*.go files 2010-10-26 21:30:00 -04:00
README.md Make README.md more clear 2010-10-20 17:34:47 -04:00
auth.conf.example Make authentication based on ident and host 2010-10-18 22:34:44 -04:00
auth.go Sometimes the Nick is created but not filled in 2010-10-26 18:43:09 -04:00
cmd-access.go Move commands into cmd-*.go files 2010-10-26 21:30:00 -04:00
cmd-google.go Move commands into cmd-*.go files 2010-10-26 21:30:00 -04:00
cmd-op.go Move commands into cmd-*.go files 2010-10-26 21:30:00 -04:00
handler.go Move commands into cmd-*.go files 2010-10-26 21:30:00 -04:00
rbot.conf.example Add nickserv autoidentify 2010-10-15 18:19:44 -04:00
rbot.go Join channels that the owner invites us to 2010-10-25 15:10:09 -04:00

README.md

rbot

Getting started

Assuming you have go set up (http://golang.org/),

git clone git://github.com/kless/goconfig.git
cd goconfig
make -C config install
cd ..
git clone git://github.com/raylu/rbot.git
cd rbot
make -C irc install
make

rbot.conf and auth.conf will be copied. Configure those and then run the bot:

./rbot

Commands

All commands are prefixed with the trigger configured in rbot.conf.

  • tr text: detect the language of text
  • tr en|ja en|es text: translate text into Japanese and Spanish
  • flags raylu: get's raylu's flags
  • flags: get's the flags of the user executing the command
  • add raylu t: gives raylu the t flag
  • remove raylu t: removes the t flag from raylu
  • remove raylu: removes all of raylu's flags
  • topic text: sets the topic and basetopic to text
  • topic: gets the current basetopic
  • appendtopic text: if the topic does not starts with basetopic, sets the basetopic to the current topic. Makes the topic basetopic+text.
  • say text: says text to the channel

Commands that don't require access behave the same when sent to a channel the bot is in and when whispered to the bot. Commands that require access are listed above as if they were sent to a channel. When sent as a whisper, the first argument must be a channel name.

Flags

Access is configured in auth.conf and based on ident and host; nick is ignored. The owner is configured per server and other access is configured per channel. Owners can use any commands.

The following is a description of the commands enabled by each flag:

  • a: add remove
  • t: topic appendtopic
  • s: say

In addition, a user must have at least one flag to use flags (so users without access can't spam the bot).

Miscellaneous

This project was forked from jessta/goirc which is in turn forked from fluffle/goirc. Both of those projects are focused on developing the goirc framework whereas this is focused on developing a bot.