[[project @ 2003-04-04 02:49:43 by unknown_lamer] unknown_lamer**20030404024943 Added a new script and updated the example configuration ] { addfile ./examples/bot.autoexec addfile ./examples/bot.conf addfile ./examples/bot.help addfile ./examples/bot.init addfile ./examples/bot.shit addfile ./examples/bot.users addfile ./scripts/log.scm hunk ./examples/bot.autoexec 1 - +; -*- guile-scheme -*- + +;;; Loads all bot-modules listed in scripts.load +(let ((scripts (open-file "scripts.load" "r"))) + (let load-loop ((script (read scripts))) + (cond ((not (eof-object? script)) + (bot:load-module script) + (load-loop (read scripts)))))) hunk ./examples/bot.conf 1 +# Sample configuration file for Bobot++ +# Copyright (c) 1997 Etienne BERNARD +# Copyright (C) 2003 Clinton Ebadi (Heavily modified) + +# Nickname of the bot +# nick = +nick = TestBot + +# Username of the bot (remember : nick!username@hostname) +# username = +username = lamerbot + +# IRCname of the bot (shown with /whois) +# ircname = +ircname = Scheme Me! + +# Command char of the bot +# cmdchar = +cmdchar = ! + +# Filename for the bot's userlist +# userlist = +userlist = bot.users + +# Filename for the bot's shitlist +# shitlist = +shitlist = bot.shit + +# Log file +# logfile = (you can put /dev/null if you don't want logs) +logfile = bot.log + +# Server +# server = [ []] +server = irc.freenode.net +#server = trollaxor.com +#server = irc.oftc.net + +# Channels for the bot +# channel = ::: +# Example: +# channel = #one:nt::: +# channel = &two:nst:nst: +# channel = #three:nstk key:nstk:key +# etc... +channel = #bobot:nt:nt:: hunk ./examples/bot.help 1 +:ACTION []  +Makes the bot do an action on . + +:ADDUSER |     +Adds an user to the userlist, for a nick!user@host matching the +one given, on a channel matching the  given. +The  can be: | The  can be: | The  can be: + 0 - No level | 0 - No protection | 0 - No auto-op + 1 - User | 1 - No ban | 1 - Op on join + 2 - Trusted User | 2 - No kick | + 3 - Friend | 3 - No deop | + 4 - Master | | + +:ADDSERVER | [] +Adds the server specified by  or  to +the server list. + +:ADDSHIT |