Re: Feature request
David Leadbeater <[email protected]> Sun, 3 Sep 2006 21:25:31 +0100
| Newsgroups | gmane.network.irc.bopm |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > I am looking to add a "Defcon" level type system, I want to add commands like: > > NAME CODE:GREEN/YELLOW/RED > !all CODE:GREEN/YELLOW/RED > > That will load a different config file, and restart the bot. > > I figured I could do this by making the 3 different config's, naming them: > > code.green > code.yellow > code.red > > and then upon the execution of the command, it will > > rm -rf bopm.conf | mv code.green bopm.conf | kill -9 bopm.pid | ./bopm | irc_send(Code Green Active) I don't see the point of copying files around, just select the config with the -c parameter to BOPM. Obviously you still need a way to select which one, it would be easy to add a command which can select it from IRC. A bit like: http://dgl.cx/2006/09/bopm-conf-cmd.diff (untested). David