Re: bopm Digest, Vol 35, Issue 1
<[email protected]> Mon, 4 Sep 2006 10:20:44 -0700
| Newsgroups | gmane.network.irc.bopm |
|---|---|
| Message-ID | <2097318009.1157390444047.JavaMail.root@fepweb01> |
---- [email protected] wrote: > Send bopm mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.blitzed.org/listinfo/bopm > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of bopm digest..." > > > Today's Topics: > > 1. Feature request ([email protected]) > 2. Re: Feature request (David Leadbeater) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 3 Sep 2006 12:33:47 -0700 > From: <[email protected]> > Subject: [bopm] Feature request > To: [email protected] > Message-ID: <426791296.1157312027692.JavaMail.root@fepweb08> > Content-Type: text/plain; charset=utf-8 > > 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) > > The code green will be a basic setup, with a long ban time... > > Code Yellow will include more ports, and black lists, with a slightly shorter ban time... > > Code Red will be even more ports and such, with a 1 day ban time at most.... > > If this could be added, or just someone help me with code snippets, it would be appreciated. thank you. > > > ------------------------------ > > Message: 2 > Date: Sun, 3 Sep 2006 21:25:31 +0100 > From: David Leadbeater <[email protected]> > Subject: Re: [bopm] Feature request > To: [email protected] > Cc: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > [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 > > > > ------------------------------ > > _______________________________________________ > bopm mailing list > [email protected] > http://lists.blitzed.org/listinfo/bopm > > > End of bopm Digest, Vol 35, Issue 1 > *********************************** Checked it out, still can't make much of it, if someone who understands this better wants to contact me and take a look at the files and such, and help me out... it would be appreciated.