Command Prefix

Back to PHP-IRC Feature Requests

Page: 1  
From User Message Body
GeorgeMoney
Post #371
Member
Date: 9:03 pm, Nov 5 2006
Posts: 1


It would be very useful to be able to add a command prefix to all commands, so your commands don't get confused with other bots. For example, instead of having a command "!google", I would want it like "!mybot google". Currently, I have to make sure all the commands are called "mybot" and the command I want is the first parameter. It would be nice if I could make the first parameter the command.

Manick
Post #372
user avatar
Admin
Date: 9:06 pm, Nov 5 2006
Posts: 223


this is just ... well, a guess, but quotes might work...


priv "!mybot mycommand" .... might try it out? I have no idea if it will actually work tho.

[edit] hmm.. now that i think about it.. that probably wouldn't work >_> ...[/edit]

Last edited by Manick at 9:11 pm, Nov 5 2006

--Manick
PHP-IRC Developer
aragno
Post #453
Member
Date: 11:39 pm, Feb 9 2007
Posts: 15


how about you just change ! for - or . or whatever

example: (news mod)
change
priv !news true true true 0 news_mod priv_news
to
priv -news true true true 0 news_mod priv_news

why make it so hard, kiss ;)

// aragno

// aragno

you'll find me in #5thelement on netgamers
   

Back to PHP-IRC Feature Requests