Closed GoogleCodeExporter closed 9 years ago
Are you sure you don't want PRIVMSG? Technically everything is a private
message, its just a private message to a channel or a user.
Short way should be bot.sendMessage(user, "Some message");
Long way should be bot.sendRawLine("PRIVMSG someUser Hi!");
Does this help?
Original comment by Lord.Qua...@gmail.com
on 21 Feb 2012 at 3:49
At least with what I'm seeing, I can only get PRIVMSG and message to the
channel to work.
PRIVMSG appears in the channel to everyone and has the user name prefix, but
I'd like to get the message only visible to the user in question in a private
channel and can't seem to do that.
Any idea what I'm missing?
Original comment by mherr...@urbanairship.com
on 21 Feb 2012 at 6:31
sendMessage(user, "Some message"); - Sends message to the user as a PM
sendMessage(channel, user, "Some message"); - Sends the message to the user in
the channel.
I'm going to assume that the "private channel" your mentioning is a PM, which
is what the first example does. Try both of them while your in XChat or
Chatzilla, you'll see what I mean
Original comment by Lord.Qua...@gmail.com
on 21 Feb 2012 at 7:43
Thanks, I'm not sure what I was doing wrong, but it works now.
event.getBot().sendMessage(event.getUser(), "Some message - PM"); //- Sends message to the user as a PM
event.getBot().sendMessage(event.getChannel(), event.getUser(), "Some message - Channel"); //- Sends the message to the user in the channel.
event.getBot().sendNotice(event.getUser(), "Some message - Notice");
As expected, Notice works now too.
Thanks for your help.
Original comment by mherr...@urbanairship.com
on 22 Feb 2012 at 12:54
Original issue reported on code.google.com by
mherr...@urbanairship.com
on 21 Feb 2012 at 5:50