« first day (436 days earlier)      last day (4737 days later) » 

20:01
!Zirak /new
  +---+
  |   |
  |
  |
  |
__+__

------
!Zirak a
  +---+
  |   |
  |
  |
  |
__+__
a
-a----
!Zirak e
  +---+
  |   |
  |
  |
  |
__+__
a, e
-a--e-
20:01
!Zirak t
  +---+
  |   |
  |
  |
  |
__+__
a, e, t
-a-te-
!Zirak s
  +---+
  |   |
  |
  |
  |
__+__
a, e, t, s
-aste-
!Zirak p
  +---+
  |   |
  |   O
  |
  |
__+__
a, e, t, s, p
-aste-
20:02
!Zirak hasten
!Zirak hasten
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, e, t, s, p, hasten
-aste-
You need to use ! :-)
!Zirak f
Yea... I'm in/out lurking while trying to teach myself php
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, e, t, s, p, hasten, f
-aste-
20:03
!Zirak master
Correct! The phrase is master. Congrats to @Dennis
Nice :D
Just a question, is anyone else at work?
What'S there to learn about php? Each time I needed it, i just hacked the script together with ease w/o prior education. :-)
I am, but I'm having more fun watching your game of hangman
20:04
@Samuel Well, it's 21:00 in Central Europe, so no. :-)
ah I see @Witiko
Feel free to join the game :-)
!Zirak /new
  +---+
  |   |
  |
  |
  |
__+__

---------
GGG
GGG
@Zirak e
:(
Zirak chaged the syntax, you need to write !Zirak :-)
!Zirak e
20:06
  +---+
  |   |
  |
  |
  |
__+__
e
----e--e-
!Zirak m
  +---+
  |   |
  |   O
  |
  |
__+__
e, m
----e--e-
  +---+
  |   |
  |   O
  |
  |
__+__
e, m, s
----e-se-
GGG
GGG
lol i'm trying to convince him to take his name out of there altogether
20:07
!Zirak r
  +---+
  |   |
  |   O
  |
  |
__+__
e, m, s, r
----e-ser
GGG
GGG
and just make the command something like !!blah or ??blah
That'd be nice. !command instead of !Zirak /command
!Zirak t
GGG
GGG
for sure
  +---+
  |   |
  |   O
  |   |
  |
__+__
e, m, s, r, t
----e-ser
20:08
Heck
  +---+
  |   |
  |   O/
  |   |
  |
__+__
e, m, s, r, t, p
----e-ser
!Zirak f
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
e, m, s, r, t, p, f
----e-ser
GGG
GGG
!Zirak h
20:08
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
e, m, s, r, t, p, f, h
----e-ser
!Zirak o
GGG
GGG
uh oh
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
e, m, s, r, t, p, f, h, o
-o--e-ser
!Zirak n
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
e, m, s, r, t, p, f, h, o, n
-on-enser
20:09
now I'm scared
GGG
GGG
!Zirak c
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
e, m, s, r, t, p, f, h, o, n, c
con-enser
GGG
GGG
!Zirak den
Correct! The phrase is condenser. Congrats to @GGG
!zirak d
20:09
@Dennis Game finished or didn't start. Ping me with /new to start
Heh, nice
The table of Letter frequency in English sure comes in handy :D
GGG
GGG
heheh
rstln
!Zirak /die
@Witiko Could not process input. Error: Property 'die' of object #<Object> is not a function
GGG
GGG
oooh interesting
20:10
Seems like I gliched him alright :D
GGG
GGG
!Zirak /constructor
@GGG Invalid command constructor
GGG
GGG
hmm
!Zirak /sdsd
@GGG Invalid command sdsd
!Zirak /__proto__
20:11
@Witiko Invalid command proto
!Zirak /__proto__
@Witiko Could not process input. Error: Cannot read property '1' of null
GGG
GGG
so is die a property of one of his objects
heheh
He has an object containing all his commands :-)
GGG
GGG
!Zirak /0
20:12
@GGG Invalid command 0
GGG
GGG
!Zirak /undefined
@GGG Invalid command undefined
And every object has __proto__
But well, other than the lulz, no harm can be done, I'm afraid
GGG
GGG
!Zirak /constructor
@GGG Invalid command constructor
20:14
!Zirek /new
GGG
GGG
why the heck doesn't it have a constructor property
oh maybe it uses hasOwnProperty?
!Zirak /new
it does
  +---+
  |   |
  |
  |
  |
__+__

----
But it isn't a function
GGG
GGG
ah right
/Zirak /constructor.prototype
!Zirak /constructor.prototype
20:15
@GGG Invalid command constructor
GGG
GGG
ok i give up :p
oh wait, constructor actually is a function
;)
GGG
GGG
yeah it should be
weird
I could look it up in his code, but I can't be __ to scroll all this text up to find it. :-)
if ( !this.commands.hasOwnProperty(commandName) ) {
20:16
Oh, well. That's quite smart :-)
__proto__ works, because it actually is own property :-)
!Zirak a
!Zirak b
!Zirak c
Multicommand?
!Zirak a
  +---+
  |   |
  |   O
  |
  |
__+__
a
----
!Zirak e
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, e
----
!Zirak sd
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, e, sd
----
20:18
!Zirak d
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, e, sd, d
----
!Zirak t
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
a, e, sd, d, t
----
I give up
GGG
GGG
looking bad
!Zirak r
20:19
your shot
!Zirak m
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
a, e, sd, d, t, r
r---
GGG
GGG
hmm did it ignore the m because it was busy with r?
!Zirak s
That would be the worse kind of coding, callbacks should ensure this never happens
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
a, e, sd, d, t, r, m, s
r-ms
GGG
GGG
20:20
oh m is there
it just skipped the response
It didn't
!Zirak rims
Correct! The phrase is rims. Congrats to @Dennis
When you post too quickly, the message doesn't get posted
GGG
GGG
ahhh
then the bot should be able to throttle its posts
20:20
Indeed
I think 10s is the limit?
Maybe 5
GGG
GGG
test
yeah seems like about 5
!Zirak /learn
@Witiko Unexpected token u@Witiko Could not process input. Error: Unexpected token u
!Zirak /learn {}
@Witiko Illegal /learn object {}
20:24
!Zirak /learn {"name" : "greet","input" : ".*","output" : "Hello, $1!"}
@Witiko Unexpected token &@Witiko Could not process input. Error: Unexpected token &
Try that again
@Witiko Try that again
GGG
GGG
!Zirak /learn foo predecessor to bar
@GGG Unexpected token o
@GGG Could not process input. Error: Unexpected token o
GGG
GGG
!Zirak /learn foo "predecessor to bar"
@GGG !Zirak /learn {"name" : "greet","input" : ".*","output" : "Hello, $1!"}
Try that first
GGG
GGG
20:36
eww wth
!Zirak /learn {"name" : "greet","input" : ".*","output" : "Hello, $1!"}
@GGG Unexpected token &
@GGG Could not process input. Error: Unexpected token &
shit
GGG
GGG
!Zirak /learn &amp;
@GGG The learn command accepts a JSON object
GGG
GGG
because that's convenient to type ;p
{
    "name" : commandName,
    "input" : regularExpressionForParsingInput,
    "output" : stringWithPlaceholderForRegex
}
I'm willing to accept any other suggestion, excluding ones which include making an independent language
GGG
GGG
20:38
!Zirak /learn {name:'help', input: '.*', output: 'www.google.com'}
I turned the bot off, trying to fix that bug
GGG
GGG
ah
i guess i was picturing learning being more absolute (no regex)
Got any suggestions?
GGG
GGG
syntax would be like learn <phrase> <definition>
/learn festivus a merry time of year
?festivus
>> festivus[1/1]: a merry time of year
GGG
GGG
20:40
/learn "super festivus" a super merry time of year
How would you describe that last one? Turning /greet Cthulu into "Hello, Cthulu!"
GGG
GGG
?super festivus
>> super_festivus[1/1]: a super merry time of year
i think greet would not be learnable under no-regex learn
I think I got the bug. Try again please
GGG
GGG
!Zirak /learn {name:'help', input: '.*', output: 'www.google.com'}
@GGG Unexpected token n
@GGG Could not process input. Error: Unexpected token n
It's JSON :P
GGG
GGG
20:43
oh ffs
!Zirak /learn {"name":"help", "input": ".*", "output": "www.google.com"}
Key names are strings, escaped in double quotes
@GGG Unexpected end of input
@GGG Could not process input. Error: Unexpected end of input
...what?
Just who came up with that candy-assery that property names need to be encased in apostrophes, when JS does just fine w/o it?
This is one of the things wrong with the world imo. :D Who's supposed to write it?
GGG
GGG
Crockford, i assume
Well, I can't see any benefits other than "Style", which is so so so so subjective. :-/
GGG
GGG
it's just for parseability
json seems to be designed to be highly parsable but not really easily wrieable
(which is why giving a bot instructions in json is probably not the most convenient way)
20:48
Try the previous one again, please. Added some more logging, might see what's wrong now
GGG
GGG
!Zirak /learn {"name":"help", "input": ".*", "output": "www.google.com"}
!Zirak /learn {"name":"help", "input": ".*", "output": "www.google.com"}
@GGG Unexpected end of input
@GGG Could not process input. Error: Unexpected end of input
GGG
GGG
LEARN IT ZIRAK
json is Javascript Object Notation. Why it is incompatible with the actual Javascript Object Notation is beyond me.
I don't get it...
20:50
Me neither :D
GGG
GGG
lol
0
Q: Right license(s) for a freemium offer

ChristopheI am currently working on a solution written in JavaScript. I plan to release two versions: For free: the lite one with base options, which is plug and play (it just works when loaded in the page) For a subscription fee: the full version that has more options and requires support I am wonderi...

Not that, who gives a rat's ass
GGG
GGG
it's not incompatible with regular javascript object notation, it's just a more limited subset
wtf is this word "fremium"
Yeah, it's a subset that supposed to be platform independent
20:52
What about this syntax:
!Zirak /learn name, ["RegExp", "flags - optional"], "output"
it'd be array w/o the brackets
shorter
This doesn't make sense
GGG
GGG
or /learn "name that is possibly a regex" "definition with possible backreferences"
wait no
that doesnt make sense either
He isn't replying to me, are you Zirak? :-)
The errors don't make sense
GGG
GGG
i would make learn a simple parroting thing and make the regex thing be a different command
oooooohhhhh
bashes head against desk repeatedly
20:55
!Zirak /learn name, ["RegExp", "flags - optional"], output
Makes sense, it is just a simplified version of the JSON
GGG
GGG
why not put the potional stuff after output
optional*
GGG
GGG
/learn name, definition, ?regex, ?flags
hah, proves useful already
because I dunno, it makes no sense to separate the RegExp stuff
GGG
GGG
20:57
i just feel like optional args should be last
!Zirak /mdn replace
I might've fixed it
Try again please
GGG
GGG
!Zirak /learn {"name":"help", "input": ".*", "output": "www.google.com"}
...

« first day (436 days earlier)      last day (4737 days later) »