« first day (1 day earlier)      last day (256 days later) » 

00:59
@Jeremy Well I have a JS question if you're around.. :)
yup
See this fiddle: jsfiddle.net/H2z8y/7
Let me try to explain what I want to do.
I have created an object that I'm using to store links, each property having a name that describes each link
I pass a links 'name' into the <input> and I want it to return the link.
Okay - right off the bat, it's better to use the var keyword for good practice (the var keyword makes sure to only define the variable within the given scope... you wouldn't want to let that slip within a function) and to use the literal notation ({} not new Object())
Yeah, I was going to switch to literal once I got it to work..
I'm not sure about the var.
@Seth Not sure as in you don't understand? I can whip up an example if that's the case
01:02
Should I declare it globally or use something else entirely?
It's fine declaring it globally... but just use the var keyword for good practice (it's declared globally regardless because you're in the global scope)
I'm sorry, which var are we talking about?
The args variable, the var in the for loop or something else?
links
Ahh.
Got it.
Like this: jsfiddle.net/H2z8y/8 ?
Literal notation, but yeah.
01:07
I'll get the literal notation later.
What I'm trying to figure out is how to return the right property.
The <input>s value is a string, which makes it hard to use.
Oh wow. That was simple.
Properties of objects can be accessed using the dot notation or a bracket notation
Sweet. I was trying with the dot notation and it wasn't working (for obvious reasons)
Also, no need for that loop: jsfiddle.net/H2z8y/12
01:10
Awesome!
Anytime
01:22
!!/refresh
!!/live
OK, something weird is happening.
!!/live
How come it dies on a refresh...
!!/live
!!/live
You forgot a semi colon man
Oh.. yeah.
!!/live
@Seth I'm not dead! Honest!
There we go.
!!/tell Jeremy link blackscreen
01:30
Excellent!
Now if only it would onebox..
Are you alive?
!!/live
Ok, so my SIGABRT didn't work..
02:12
!!/live
@Seth I'm not dead! Honest!
Not now.
You're really causing me some trouble.
!!/refresh
!!/live
@Seth I'm not dead! Honest!
Hmm....
!!/tell seth link broadcom
02:13
esh!!/refr
!!/refresh
!!/live
Aha!
!!/refresh
!!/live
@Seth I'm not dead! Honest!
So that's why..
!!/live
@Seth I'm not dead! Honest!
02:43
@Seth you don't need to say tell seth if you're doing it to yourself
!!/link broadcom
03:32
@Jeremy Ah, I should remember that.
03:52
!!/help mute
@Seth Command mute does not exist.
Wha...
!!/help umute
@Seth Command umute does not exist.
O_o
!!/help link
@Seth link: No info is available
03:54
!!/unmute
@Seth That didn't make much sense. Use the help command to learn more.
!!/help
Very strange...
I see the code for a mute and unmute command, but the bot says they don't exist.
!!/stat Jeremy
@Seth No site found for name stackexchange
03:55
!!/stat
!!/live
@Seth I'm not dead! Honest!
Hmm.
!!/unmute
@Seth That didn't make much sense. Use the help command to learn more.
!!/refresh
!!/live
04:15
@Seth I'm not dead! Honest!
YAY
04:56
!!/summon 7501
 
1 hour later…
06:24
Cool! :O
!!/link broadcom
@Mochan No site found for name stackexchange
!!/stat Mochan
@Mochan That dude sucks
06:26
@Seth //crying
!!/stat Seth
@Mochan No site found for name stackexchange
!!/define Silence
@Mochan No definition found.
!!/define silence
@Mochan silence The lack of any sound.
06:29
Hahah
!!/help
!!/listcommands
@Mochan help, listen, eval, coffee, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, parse, tell, mdn, define, get, github, google, inhistory, learn, stat, summon, unsummon, timer, todo, undo, welcome, wiki, link (page 0/0)
!!/listen help
06:30
!!/listen
@Mochan That didn't make much sense. Use the help command to learn more.
!!/google chicken
!!/summon Seth
@Mochan Registered; need 0 more to execute
06:31
!!/welcome
@Mochan Welcome to the Ask Ubuntu General Room! Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
That's confusing but whatever.
This is really cool @Seth
 
10 hours later…
16:50
Thanks :)
I actually disabled most of those commands.. I just need to remove them from the list.
!!/tell mochan help listen
@mochan listen: Forwards the message to my ears (as if called without the /)
!!cowsay Hi @mochan
 ___________
< Hi @mochan >
 -----------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
room topic changed to The chat bot: Where I test my chat bot instance and configure it. [bot] [testing]

« first day (1 day earlier)      last day (256 days later) »