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
java.nio.file.NoSuchFileException: bot.properties #63
Comments
the Also remember that the format of bot.properties requires linebreaks (I assume they just didn't get formatted correctly) Furthermore the login to chat may currently be non-functional, because there have been breaking changes to the way SE exposes chat-login. Drop me a note regarding how it goes :) |
yes, its working now, i have just copied bot.properties in root where jar is created. As you said there might be some change in SE login, yes there is small change in login page of SE. This is the line we need to change in StackExchangeChat.java inorder to login with stackoverflow.
replace it with
Apart from this, there is one more query i have, i have successfully logged in to SE chat and bot has posted welcome message also, but how can i interect with my bot. I have set trigger value to ** but how should i use it? because i have tried a lot and seems bot is not listening any request. Do i need to upload my jar file on live server? or is it ok to run it in local? |
It should be okay to run the bot locally. To interact with the bot it should be sufficient to just write a message beginning with the trigger value. That should invoke a command. Make sure to have a look at your immediate window. The bot may log diagnostic information there, when it doesn't respond in chat. example message:
|
yes i tried that, here is the room i am doing all this things http://chat.stackoverflow.com/rooms/110563/nothing-to-do it is not responding, neither it is showing any message in my console. You can refer this screenshot. |
can you verify for me whether StackExchangeChat#queryMessages is invoked? and if it is invoked whether it actually propagates any results? |
yes it is invoked, but error is in StackExchangeChat#handleChatEvents , it is going in catch block.
after lot of debugging i found that events.getSite() is returning null in StackExchangeChat#handleChatEvents |
Is this still happening? |
I had this file along with src, javadoc, pom.xml and other files. But still it is showing me that NoSuchFileException for bot.properties.
and here what i have inside bot.properties:
LOGIN-EMAIL=myEmailAddressPASSWORD=accountPasswordROOMS=TRIGGER=**
SITE=stackoverflow
Where should i put that?
The text was updated successfully, but these errors were encountered: