vermi-zz / rbot

An IRC bot based on goirc and the ideas of MPU
http://www.pl0rt.org/code/goirc/
3 stars 1 forks source link

rbot

Getting started

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

git clone git://github.com/vermi/rbot.git
cd rbot
git submodule init
git submodule update
gomake

rbot.conf and auth.conf will be copied. Configure those. bans.list will also be touched; it requires no configuration, but the bot won't run without it. Afterwards, run the bot with the following command:

./rbot

If you're going to be running the bot for extended periods of time, we recommended using the nohup command.

nohup ./rbot &

This will keep the bot from stopping if you log off. By default, all output will be logged to ./nohup.out

As a side note, cmd-ap.go is specific to #anime-planet.com on Rizon; it's not necessary for any normal functions of the bot, so you can remove it if you want. Just be sure to remove it from Makefile and handler.go as well.

Flags

Access is configured in auth.conf, is per-channel, 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. Ignores are checked before access.

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

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

Commands

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

Access related commands:

Admin commands:

The ban-log may need to be zeroed out manually from time to time to reduce clutter.

Op commands:

Google API commands:

Help commands:

Help topics and content are manually entered in help.conf. You probably won't need to change this, unless you add commands to the bot yourself.

Imageboard Search Commands:

Anime-planet.com Commands:

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.

The bot will accept invites from the owner to any channel and only the owner can use part.

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.