last day (112 days later) » 

12:07 AM
Idea:
Alfred, see any zombies?
NO
Alfred, see any [tag] zombies?
FROM THERE
Alfred goes to questions page
Goes to tag page
Goes to unanswered tab
Selects a random page
Selects a random question from that page.
 
Can get total amount of pages by looking at bottom of first questions page
The value of the button on the far right is the max page
--
Alfred can just return a link to that post
Hello, there @Hosch250
 
Eh, what's this?
Hi, @SirPython
 
Just brainstorming.
For a bot.
 
OK.
Talking about bots, have you talked to Simon or Doorknob?
 
Yes.
 
12:12 AM
They both run a bot, the one in Java and the other in Ruby.
 
I've spoken to Simon
 
OK.
 
My bot's "template" is done.
It has basic text searching features
But nothing much else.
 
Thinking about all the Sirs, reminds me of a joke Cortana told me.
Nice.
 
What's the joke?
 
12:13 AM
And, not so nice.
(I mean, nice you have the template done, too bad you don't have more done.)
Who is the roundest knight as Sir Arthur's court?
 
Who?
 
Sir Cumferance.
 
Hah!
That's a good one!
 
My favorite is "What is the difference between Ignorance and Apathy?"
 
What?
 
12:16 AM
I don't know and I don't care!
 
LOL
 
There is always "What do Ivan the Terrible and Winnie the Pooh have in common?"
 
What?
 
The same middle name.
 
Would that have been more funny if I knew who Ivan the Terrible was?
 
12:17 AM
Probably.
Russian Czar, nasty person, murdered his son in a fit of rage.
 
Is that also a joke?
 
No, dead serious (that is a pun).
Ivan IV Vasilyevich (Russian: Ива́н Васи́льевич, tr. Ivan Vasilevich; 25 August 1530 – 28 March [O.S. 18 March] 1584), commonly known as Ivan the Terrible (Russian: Ива́н Гро́зный​ , Ivan Grozny literally "Ivan the Formidable"), was the Grand Prince of Moscow from 1533 to 1547 and Tsar of All the Russias from 1547 until his death. His long reign saw the conquest of the Khanates of Kazan, Astrakhan and Siberia, transforming Russia into a multiethnic and multiconfessional state spanning almost one billion acres, approximately 4,046,856 km2 (1,562,500 sq mi). Ivan managed countless changes in the...
 
You get the first star of this room.
 
I see.
 
IDEA
Alfred, show our guest, [name], to the door
THEN
Alfred kicks them from the chat room
...
This chatroom is pointless.
 
12:22 AM
:)
You get the second star.
 
@Hosch250 Precisely
 
So, which language are you using to write it?
 
JavaScript
Just to start as something simple
 
Hmm.
 
@Hosch250 ?
 
12:24 AM
I know my HTML and CSS reasonably good, but I have very limited knowledge of JS.
 
It's aimed to work like this:
 
Is this going to be open source or closed source?
 
Open
1. I open up another tab
2. Log in as the bot
3. Join this chatroom
 
Private tab, right?
 
4. Start the script
Yes.
 
12:25 AM
Regular tab doesn't work for me.
OK.
Sounds interesting.
 
I have the code in a gist right now, but I'll be moving it to a repo soon.
 
I might write a C# bot for me to post messages from.
Once I get that, I might make it into a WS and WP app.
 
That would be cool!
 
And then, before I know it, I'll have a full WS and WP SE app.
 
I need to find another zombie for the bot to kill... the last one didn't land any votes.
 
12:27 AM
SE doesn't have plans to support WP, and I might as well create a universal app if I do it.
That image reminds me a bit of Dr. Calico.
 
Dr. Calico?
 
From Bolt?
 
From Bolt - a Disney movie.
 
Yes.
 
12:28 AM
Yup.
Have you seen that?
 
I don't remember that guy...
Yes
 
It is one of my family's favorite movies.
 
It is a really nice movie.
 
He is the crook that Bolt is protecting his girl from (forget her name...).
 
I haven't seen it in a loong time.
Everything about that movie is kind of a haze to me. I only remember the part when they are in that mobile home.
 
12:30 AM
@SirPython I think SirAlfred needs to be an owner to be able to kick people.
 
He will be made an owner
 
@SirPython I read that in a tone like a determined dictator might use, lol.
 
Thanks, "Santa"!
Oh! I found me a good zombie
I have posted another answer
 
And I have finished my video assignment.
I'm glad too, Premiere Elements is the worst software in the world.
 
You were saying earlier that it crashed your other applications, right?
 
12:42 AM
Yeah.
First time ever.
At least it didn't crash Windows too.
 
Couldn't you have used Windows Movie Maker, or do you not like that?
 
School assignment.
I'm using more advanced features, like animations and resizing over periods of time, and such like.
 
Oh.
Finally! Time to introduce SirAlfred into this room
 
Welcome, Sir Alfred!
Doffs hat and bows low.
 
Technical difficulties...
Hmm...
It says that he must have atleast 20 reputation to chat
But he does have 20 reputation.
And he can't chat
 
12:46 AM
The chat system is separate from the other system.
 
You might need to wait a few hours.
 
bangs head on keyboard
 
Percussive maintenance of both head and computer?
 
I think I can still test out his features, but not have him be here.
Hold on, I'll be right back.
Alfred, thank you
Okay.
Still some bugs.
Wait no
I know why
Alfred, thank you
Found a problem.
 
12:52 AM
It is usually pretty easy to find problems at first...
It is the problems that appear to work right, but actually don't, that are hard to find.
Like a stable sort that almost sorts, and does sort in some solutions, that doesn't actually work properly (real life example).
 
I see the problem, I just don't know why it's a problem.
Bah...
This is so inefficient.
 
Want to share the problematic code?
 
It's not the code, it's the workflow
 
Oh.
 
// later, put this in repo. And, on repo site, add a form that helps create the bot for others to use

var sa_chatFeed = document.getElementById("chat");



var sa_abilities = {

	"thank you": function() {

		sendMessage("Always at your service, master.");

	}

};



function sa_isMaster(message) {

	if(message.userID == 136389) { // my chat user id

		return true;

	}

}

function sa_getLastMessage() {

	var e = sa_chatFeed.lastElementChild; // last child because some msgs are grouped under 1 element
Excuse the excess lines and super indents
I'm trying to edit this in the gist editor
I'm putting it in a repo now so it can be more easily monitored
 
1:05 AM
So, what are the bugs, or are they already smashed?
 
The current issue is that sa_Main only runs once when it should repeat every second.
I have ideas on the issue with that line
BUt right now, I need to setup an easier coding environment
 
If you have VS, I think you can edit JS in it.
You can handle the repo through it too.
 
That part I'm not too concerned with
It's having to take the address of the file on GitHub
Then put it in rawgit.com
Then paste the code in this chat room
 
Alfred, thank you.
 
It only listens to when I do it.
Unless someone were to change the ID
 
1:08 AM
OK.
 
You just gave me an idea!
 
Alfred, hi.
I changed the ID.
I am running it in my browser.
What are the keywords?
Alfred, what's up?
 
Right now, you would say:
Alfred, thank you
That is all that implemented so far
 
Alfred, thank you
It seems to be running, it is getting POST and GET messages when I say "Alfred, something"
Alfred, thank you
Hmm, that might just be my browser.
But, it didn't do anything for that message.
 
Yeah, that's the issue I'm working out.
I updated the code
 
1:13 AM
So, is it supposed to print your Python picture in response?
 
No
It's supposed to say:
Always at your service, master.
 
Oh.
Just wondering, because the GET messages are our pictures.
 
?
What GET messages?
 
In my browser.
Alfred, thank you
 
What are you doing to run the code?
 
1:18 AM
I was just running it in the console thing.
 
Just copy-pasting it?
Wait
 
Yup.
 
I have no idea why I was not doing that
I was going the long and complicated way.
 
Alfred, thank you
I don't know JS ::(::
 
Well, one thing is for sure in this code: I need to review how I read the HTML
Test
 
1:22 AM
Alfred, thank you
Bother.
 
I found an error...
Fixing that now
 
Hey, is JS 0-based?
 
Yes.
 
Because, isn't this a bug?
	for(var i = users.length; i > 0; i--) {
		if(users[i] == message.userID) {
			return true;
		}
	}
 
Ah!
 
1:24 AM
	for(var i = 0; i < users.length; i++) {
		if(users[i] == message.userID) {
			return true;
		}
	}
 
Good catch
 
I fixed it.
Here, I'll submit the change.
I want to get my finger in this (if you don't mind, that is).
 
Of course not!
I've never collaborated with anyone in code before
 
Submitted.
Sent pull.
Can I put my chat ID in so I can help debug it?
 
Yup!
 
1:30 AM
Alfred, thank you
 
Always at your service, master.
!!!!!
I didn't type that!
 
My post got your computer to respond?
 
Yes
I ran the function, and since you are a master, the message got typed
Now, I just need to get it to loop properly
 
Test
 
Alfred, thank you
 
1:35 AM
I think I know why it is not working for you
Are you running sa_Main() after you type the message?
 
I killed it in my computer.
No.
 
That would do it
 
Oh.
So, how would I do that?
 
After you paste the code, just enter into the console: sa_Main()
 
Post my message, then run the thing in my console?
 
1:36 AM
Yes
 
Alfred, thank you
> Error: useless setTimeout call (missing quotes around argument?)
Alfred, thank you
 
Make sure you are using the most recent code
 
Hmm, no error, but no luck.
 
I have updated the repo a few times.
 
Is there anything I can do to help, sir?
 
1:38 AM
Not right now, Alfred
 
Of course, sir.
 
Last two updates were mine.
 
Did you refresh?
 
Yes.
 
Oh
I didn't see the error in my console
I
'm having problems with git
Ah.
I forgot to pull first
 
1:40 AM
You need to submit a pull request.
I'm just using the browser for now.
 
Now try
Did the code change?
 
Yes.
 
Alfred, thank you
Always at your service, master.
 
Alfred, thank you
Huh?
 
Was something weird happening "on your end", too?
Kind of like a message being posted
 
1:43 AM
Oh, syntax error.
Missing a brace.
 
Oh.
Nevermind.
 
> SyntaxError: missing } after property list
I can't find the problem.
 
I'm not getting that...
I'm about to post the code again.
It should work there.
 
I posted updated code
Try it
Alfred, thank you
 
1:47 AM
Alfred, thank you
 
Found an error
 
No errors, but no response either.
So did I.
 
Alfred, thank you
Always at your service, master.
Alfred, thank you
Hmm... now Alfred is eating my messages
Maybe that is supposed to happen
I'm going to put the code on the real Alfred now and try it out
 
You had spelled "guest" as "gues".
What do you think about this:
	"hello": function() {
		sendMessage("Standing by for orders, master.");
	}
 
Sure!
The code is on the real Alfred now
 
1:51 AM
Alfred, hello
 
Alfred, thank you
 
Always at your service, master.
 
Alfred, thank you
 
Test
Alfred, thank you
Oh!
I think I found something out
a
Yup - this chat room won't let you repeat a message
That is why
 
Ah ha!
Yeah, I know that.
 
1:52 AM
@Hosch250 What did you find?
 
I've had that problem.
 
Hi
 
Hello.
 
I try to post the same message twice, like "OK", and it doesn't let you.
Alfred, hello
 
1:53 AM
¿ʎɐpoʇ ƃuᴉop noʎ ǝɹɐ ʍoH
 
We are doing fine
And you?
 
Why is it giving me an error when I try to edit it?
 
What is the error?
Oh
Maybe try pulling
Then pushing
 
I'm using the browser.
 
1:56 AM
Did you try refreshing?
 
Yes.
 
Alfred, hello
 
Standing by for orders, master.
 
Good Alfred
What is the error you are getting?
 
There, got it.
It was telling me the submit wasn't working, but it really was.
I just found all my submits waiting to be pulled, but it looks like you beat me to it.
 
1:58 AM
Sorry, I didn't see it in time
 
Because I hadn't pulled it.
 
Plus, the code you wanted to submit with "hello" has an error
 
OK.
Where?
It looks like your change is identical to mine.
 
You need a comma after the closing brace of "thank you"
 

  last day (112 days later) »