raisedragon / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

Bot does not respond to private message command #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the java program and run "MyBot.java"
2. Connect to #DawnInvest on irc.freenode.net
3. Send bot "InvestManager" a Private message with either 
".time",".hyip",".options", or "Hello"

What is the expected output? What do you see instead?

The bot is to respond either the time to ".time", the defined hyip list to 
".hyip", or " 'Hello' + user 'To start type '.options' " to the a message 
containing "Hello", or "Your options are '.time' and '.hyip' to the .options 
command. Instead, the bot will not respond at all, although it does acknowledge 
in the console that it receives a private message. 

What version of the product are you using? On what operating system?

I am using pIRCx 1.9 Development Build after having connection problems after a 
while on pIRCx 1.8 . I am using Windows 8 x64 Bit. 
Please provide any additional information below.

If it matters, I code on jCreator Pro 4.00. Also, I have attached a .rar file 
containing all files necessary to run the bot. I just want the bot to be able 
to respond to private messages. I have not tested if it will respond to channel 
messages. If someone could test that at the same time, that would really help 
me. Thank you for any help given.

Original issue reported on code.google.com by george.d...@gmail.com on 2 Apr 2013 at 5:58

Attachments:

GoogleCodeExporter commented 9 years ago
It seems the issue has magically fixed itself O.o

Original comment by george.d...@gmail.com on 2 Apr 2013 at 6:01

GoogleCodeExporter commented 9 years ago
I spoke to soon. It seems that the '.time' and '.hyiplist' do not work in 
private message setting still.

Original comment by george.d...@gmail.com on 2 Apr 2013 at 6:10

GoogleCodeExporter commented 9 years ago
I have tested your bot and it works fine

Private messaging:
<TheLQ> .options
<InvestManager> Your available options are: .time, .hyiplist
<TheLQ> Hello
<InvestManager> HelloUser(nick=TheLQ, realName=, login=, hostmask=, away=false, 
ircop=false, server=, hops=0, bot=Version{PircBotX 1.9-SNAPSHOT, a fork of 
PircBot, the Java IRC bot - pircbotx.googlecode.com} Connected{true} 
Server{irc.freenode.net} Port{6667} Password{null}, 
uuid=30949b82-82d4-4890-90e2-6336d15e984b)to start, please type '.options'

(for FirstContact you probably meant to use event.getUser().getNick())

And in the channel
<TheLQ> .time
<InvestManager> TheLQ: The current time is Wed Apr 03 16:59:53 EDT 2013

So I know everything is working as expected: You listen for private messages in 
StateOptions and FirstContact, and you listen for channel messages in 
TimeCommand

If you wish to handle both private messages and channel messages in the same 
class and don't care about the channel you can instead listen for 
GenericMessageEvent.

Original comment by Lord.Qua...@gmail.com on 3 Apr 2013 at 9:06