« first day (182 days earlier)      last day (31 days later) » 

04:59
I am working on a web game right now. I will probably work on the chat bot after that...
 
8 hours later…
12:50
@Vog? I did some debugging, it seems that the event fetch works for all chat.SE sites, but not for chat.SO: hastebin.com/ijadoluwaf.avrasm
The relevant code in Main.java is:
javaBot.joinChat(SESite.CODE_REVIEW, 14370); //Blue Cheese Monster's home
javaBot.joinChat(SESite.STACK_OVERFLOW, 139); //Java
13:13
Umm have you tried to join just a single room?
14:00
@Unihedron um that thing single room.. you tried it?
Should I? I might have figured out a solution though.
I suspect it might be because the referrer url is not correct and SE thus blocks it with "oops"
which is, fine...
Referrer url?
for the post request..
you url is ... wrong...
??? Where?
14:04
what browser are you on?
press F12 and goto network
then send a message and see what happens...
I'm using chrome
look into the post request-headers.
testmessage ;)
oh....
... yep...
I feel ashamed :|
14:08
this thing is the cause for not being able to send ajax against that service from everywhere.
else I could send a message to the java room using the dev-console
(see rlemon's stuff directly after the invocation thing)
So I guess http://chat.%s.com/chats/%d/events is wrong altogether?
no that's fine..
if you remove the BlueCheeseMonster-Join it should work
14:24
that's... interesting in the very least..
I recall having it working wonderfully for the sandbox...
I'll try sandbox
crash still on SO sandbox
I'll register a CR account for the bot
testms
14:42
##test:junk
okay I can confirm that enqueuing new messages in this room works
It does enqueue, but doesn't actually post it.
enqueue in the sense of reading..
It doesn't post new messages successfully though.
hmm... yes..
I'll send you the credentials of JavaBot, maybe you can figure something out.
The email you listed on your github profile works, correct?
echo, echo, echo
15:28
uh yes..
um...
just ping me ;))
##eval:"test"
lol bot is still nicely running ;)
##eval:"test"
ermph..
he should show up here by now..
@Unihedron well do you see him?? ;)
15:48
@Vogel612 Nope..
Oh hi!
oh yaaaaay.
Hello! I'm trying to get a chatbot to work. It's coded in java.
badum, tss.
@Unihedron for the record, this is the guy I stole the mechanize from..
That's all fine and all... but I suppose there's an issue then if you need my help!
15:49
@Vogel612 ..
@skiwi completely correct..
we can't get him to post messages.
##eval:test
Actually, it pushes him to an error page.
1 hour ago, by Unihedron
http://hastebin.com/ifacujipar.avrasm
> title: Oops! Something Bad Happened!
@Vogel612 Can he read commands?
@skiwi somewhat..
@skiwi listens to events properly
15:51
I think the rebase gave him some difficulties while passing them to the processing thread..
Well, if you used my code, then it should be working
but he can read em..
As @Duga also works
So that's kinda odd
Oh and this was what I've been doing for the past few hours:
Did you follow the instruction one by one?
> In order to run a StackExchange account as a bot, you need to follow the following steps:

Go to https://openid.stackexchange.com.
Create an account.
Create a StackExchange account on http://stackexchange.com.
Make sure you can log in to it.
Create an account on a specific site, for example http://stackoverflow.com.
Earn 20 reputation, following the rules of the particular site.
Log in to http://chat.stackexchange.com.
Confirm that you can talk.
15:53
I can have him run on my account, too, but yes we got that down so far
Heyo uni here.
@skiwi [status-completed]
I'm not so concerned about the error message
> 十一月 06, 2014 10:22:44 下午 com.gmail.inverseconduit.chat.MessageRelay sendMessage
資訊: title: Oops! Something Bad Happened!
This is more worrying
Yep, the sendMessage command returned a rawstring HTML document representing an error page
Still sounds somewhat familiar yep
15:55
that's a severe log with the title of the html-document
Well chat.stackoverflow.com/error?aspxerrorpath=/chats/139/events claims it's not an error on your side
aside from the possibility to change the chat domain and the thrown exceptions the code is actually the same..
I see Chinese(?) characters in the logfile though
Are you possibly running it on a foreign locale?
that's uni's fault ..
@skiwi That's cuz my environment is messed up
15:57
I blame the locale and default encoding
but... currently the bot runs on my side..
@Vogel612 Hmm
So I have to fix the locale first?
Ima drop you a stack
15:58
@Vogel612 Runs as in working or not working?
@skiwi as in neither nor
Nov 06, 2014 4:57:51 PM com.gmail.inverseconduit.chat.MessageRelay$1 getRedirect
INFORMATION: Redirecting to stackoverflow.com
Nov 06, 2014 4:57:52 PM com.gmail.inverseconduit.chat.MessageRelay loginWithEmailAndPass
INFORMATION: Login to site successful
Nov 06, 2014 4:57:53 PM com.gmail.inverseconduit.chat.MessageRelay joinChat
INFORMATION: Chat-page moved
Nov 06, 2014 4:57:53 PM com.gmail.inverseconduit.chat.MessageRelay joinChat
INFORMATION: Joined room.
Nov 06, 2014 4:57:53 PM com.gmail.inverseconduit.chat.MessageRelay sendMessage
That loginWithEmailAndPass seems new
SCHERWIEGEND!
Can you make him join somewhere on chat.SO and see if it's a chat.SO-specific problem?
Ah
I spot something
Is the code on Github somewhere btw?
sure, just dropping the login method here
    public boolean loginWithEmailAndPass(final SESite site, String email, String password) {
        HtmlDocument rootLoginPage = agent.get(site.getLoginUrl());
        Form loginForm = rootLoginPage.form("se-login-form");

        loginForm.get("password").setValue(password);
        loginForm.get("email").setValue(email);

        HtmlDocument response = loginForm.submit();
        if (response.asString().contains("class=\"profile-me")) {
            LOGGER.info("Login to site successful");
            return true;
15:59
Enlighten us!
@skiwi yep
branch vogel is closest to currently running state..
Is the bot supposed to join here?
attempting room java
behaviour is the same..
Can you link that room?
16:01
Negative, he's absent.

 Java

Dedicated to the discussion of the Java programming language a...
^ I also own that so if anything goes wrong I can trash messages.
No difference between this room and there?
nope..
Oh I see the ugly hacks again to get redirecting to work with Mechanize :D
I never liked Mechanize. ;)
I think Vog did the entirety of it.
I didn't quite find any alternative
16:04
@skiwi yea I took that from you...
@Vogel612 I would first try to verify if you are really logged in.
how would you do that??
So enter the room, and check if that "You must be logged in" message is somewhere in the document?
That's more tricky I guess
Parse the output or something
It's what I did
well it's what I did too..
16:05
I suspect that you're not actually logged in
And if it's present, use login-and-redirect URL?
gimme a sec to check something..
If you are logged in, then your name will show up on the top bar
Can't we do something like...
http://stackoverflow.com/users/login?returnurl=http%3a%2f%2fchat.stackoverflow.‌​com%2frooms%2f139
It's a pain to generate the print literals, but it works
I check the response for class="profile-me"
that is only there when you have a profile link in the top-bar (aka. are logged in)
16:07
@Vogel612 I'm not sure if that works?
then and only thenyou get the info-log: "Login to site successful"
chat.stackoverflow.com does not seem to have the string profile-me... BUT it might be loaded in at 'runtime'
@skiwi naah when logging in I log in to the main site first anyways..
will that be a problem?
I don't know more than this though
16:11
~brb hopefully
@JavaBot o_o
soz..
dat was me
sorry.
Bots can join here!
Yay bots room!
I will try to figure out how to change the name later. let's make sure that we don't give them the same come hither command
16:20
if ping then return pong || if pong then return ping
okay I am on the global login page now..
and that far it seems to work..
now I need to wait for the JS to kick in..-.
@Malachi what is the current invocation?
still the good old !! ?
the one that i was using was CR but I can change it when I turn blue cheese back on
thanks ;)
okay current state is up on my branch...

« first day (182 days earlier)      last day (31 days later) »