News:

So the widespread use of emojis these days kinda makes forum smileys pointless, yeah?

Main Menu

Commands not responding

Started by Lance, April 09, 2008, 11:05:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lance

How can I get a command to work for users not in the bot's local database? For example:

register.registerCommandPlugin(this, "spam", 1, false, "", "spam", "Kicks an account for spamming", null);


out.sendText("/kick " + args[0] + " Spamming");

Works for me, but not for someone who isn't in the database. I tried <null> in there too, but no result :(
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

iago

Try making a new flag that isn't being used, and give "*" that flag. That's the easy/cheater way that I'd do it.

Lance

#2
Worked, using a different method since I didn't fully understand in the above post. My temporary solution is starting to show how temporary it is T_T
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Lance

Quote from: iago on April 10, 2008, 08:21:17 PM
Try making a new flag that isn't being used, and give "*" that flag. That's the easy/cheater way that I'd do it.

Can you explain it please? I am kind of confused :o
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Hdx

Set the flags for the command to something like Q
And then jsut do /add * Q
http://img140.exs.cx/img140/6720/hdxnew6lb.gif
09/08/05 - Clan SBs @ USEast
[19:59:04.000] <DeadHelp> We don't like customers.
[19:59:05.922] <DeadHelp> They're assholes
[19:59:08.094] <DeadHelp> And they're never right.

Lance

That was my temporary alternative solution lol
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

Hdx

http://img140.exs.cx/img140/6720/hdxnew6lb.gif
09/08/05 - Clan SBs @ USEast
[19:59:04.000] <DeadHelp> We don't like customers.
[19:59:05.922] <DeadHelp> They're assholes
[19:59:08.094] <DeadHelp> And they're never right.

iago

What's wrong with the temporary solution? That's how I've always done it.

Lance

restarting the bot desynchronizes the list (people may have joined or left since)
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!

iago

That doesn't sound like it makes sense to me.

Are you doing this?

.setuser * 'Q'

Then requiring the command to have 'Q'?

Lance

#10
I've resolved this. Thanks.

Yes, I was doing that.
Quote from: Joe
[23:55:31] [william@enterprise ~/Documents/Programming/javaop2]$ svn commit -m 'Tried to fix StayConnected. Again.'
Committed revision 63.
StayConnected strikes back!