A few suggestions for the bots access system:
1) Authentication
a. By hostmask (and not by nickname like it's now,
since not every network provides nickserv for
nickownership)
b. By handle and password: the owner stores a handle
and a password (this password should be encryped before
the owner gets it form his user but that could be a
difficult to realise) pair in the config and users who
want to access the bot privmsg it with their data, e.g.
user anick prvismsgs the bot with "auth anick anickspw"
and is given access to the bot until the user quits irc.
2) Command access
Ultimatly the owner is able to freely specify different
levels of access to the bot e.g.:
Owner - access to all commands
Master - !add !del !info but NOT !exit
User - only !info
Logged In: YES
user_id=595999
1) i actually don't know if the irc-framework i use can
handle with hostemasks. i have to check that first.
2) granted. i'll implement this in the next release. would
you like to set the different levels in the config or via a
command e.g. "!adduser/addmaster nick"?
Logged In: YES
user_id=1209582
Hm i'd say the configuration of the different levels should
be made in the config file (the user could use the !bot
config.level... from the rehash command suggestion to change
it on the fly, if that is implemented).
Depending on the way the authentication is done a command to
add users to the bot config could be handy. When the
authentication is done like i described it in 1) b. it would
be even perfect: the owner !addusers the user and the user
then has to privmsg the bot the password he wants to use and
the bot stores this password encryped together with the new
users access in the config file. If the user doesn't set the
password before he quits IRC his access isn't stored to
prevent users with blank passwords.