Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not enough parameters' #416

Closed
anonprophet opened this issue Oct 17, 2015 · 14 comments
Closed

Not enough parameters' #416

anonprophet opened this issue Oct 17, 2015 · 14 comments

Comments

@anonprophet
Copy link

i just want my bot whisper !unhost only, but its give me error

17 Oct 17:07:42 - SEND: PRIVMSG dota-1 !unhost
error:  { prefix: 'sg02.xxx.id',
  server: 'sg02.xxx.id',
  command: 'err_needmoreparams',
  rawCommand: '461',
  commandType: 'error',
  args: [ 'DOTAHOST', 'PRIVMSG', 'Not enough parameters' ] }

what i must todo ?

@anonprophet anonprophet changed the title 17 Oct 17:07:42 - SEND: PRIVMSG dota-1 !unhost error: { prefix: 'sg02.kabargames.id', server: 'sg02.kabargames.id', command: 'err_needmoreparams', rawCommand: '461', commandType: 'error', args: [ 'DOTAHOST', 'PRIVMSG', 'Not enough parameters' ] } Not enough parameters' Oct 17, 2015
@moshmage
Copy link

I have no clue what you just said, @anonprophet - care to explain it with more words?

@anonprophet
Copy link
Author

sorry,
i want my bot whisper to user dota-1 with message only !unhost
but got error Not enough parameters

error:  { prefix: 'sg02.xxx.id',
  server: 'sg02.xxx.id',
  command: 'err_needmoreparams',
  rawCommand: '461',
  commandType: 'error',
  args: [ 'DOTAHOST', 'PRIVMSG', 'Not enough parameters' ] }

its ask my bot to add more text like !unhost something to fix this
but i just want my bot to whisper only !unhost without additional parameters or messages

@moshmage
Copy link

And what is the code you're using to do this?

@anonprophet
Copy link
Author

case '!unhost':
if (inArray(allowner, nick)) {
    if (owner['dota-1'].toLowerCase() == nick) {
        client.say('dota-1', '!unhost');
    } else if (owner['dota-2'].toLowerCase() == nick) {
        client.say('dota-2', '!unhost');
    } else if (owner['dota-3'].toLowerCase() == nick) {
        client.say('dota-3', '!unhost');
    } else if (owner['dota-4'].toLowerCase() == nick) {
        client.say('dota-4', '!unhost');
    } else if (owner['dota-5'].toLowerCase() == nick) {
        client.say('dota-5', '!unhost');
    }
}
break;

@moshmage
Copy link

That's weird. This shouldn't be happening. Are you sure this is where the error is coming from?

@anonprophet
Copy link
Author

Yes, as u can see in first post
17 Oct 17:07:42 - SEND: PRIVMSG dota-1 !unhost
everytime i send that, its return

error:  { prefix: 'sg02.xxx.id',
  server: 'sg02.xxx.id',
  command: 'err_needmoreparams',
  rawCommand: '461',
  commandType: 'error',
  args: [ 'DOTAHOST', 'PRIVMSG', 'Not enough parameters' ] }

and im already check dota-1 its not receive the message !unhost
just to confirm its error not make my bot crash / stopped, that error msg just show up, and message not delivered

@moshmage
Copy link

Well, I really don't know how that could be happening. Can you share the irc server on which that is happening so I can try and figure out what's up?

@anonprophet
Copy link
Author

thanks, for try to help me
where i can PM u access to my server? email or maybe skype
bcoz its a pvpgn server https://github.com/pvpgn/pvpgn-server

i need pm u port, username and password

@moshmage
Copy link

pm me on [email protected] and I'll see what's what over the weekend.

@anonprophet
Copy link
Author

@moshmage im already PM u the access, are u already check it ?
thanks

@moshmage
Copy link

@anonprophet It seems that it's a bug on the pvpgn part, I did get the same error as you - but only when connected to that server. I tried the same code on 3 servers, yours was the only one that gave that error.

And it appears to happen with only one word, if your message is, say " !unhost" or "! unhost" it would not trigger that pvpgn bug

@anonprophet
Copy link
Author

is there other ways to send one word ? besides .say command ?

@ghost
Copy link

ghost commented Oct 25, 2015

May want to try these:

Client.notice(target, message)
Client.send(command, arg1, arg2, ...)
Client.conn() deperciated -use Client.send() is said to be better.

https://node-irc.readthedocs.org/en/latest/API.html#client

@moshmage
Copy link

Either what @jnull said or you could try and go to the pvpgn github and report an issue.
You can always just change the receiving end code to match a two-word command.

edit: motion for close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants