These are chat archives for Wolvan/gitter-test

19th
Nov 2015
Wolvan
@Wolvan
Nov 19 2015 00:23
Hello World
Wolvan
@Wolvan
Nov 19 2015 13:39
HelpmeThis is a test message
Helpme This is a test message
Wolvan
@Wolvan
Nov 19 2015 19:51
test
it werks
nice
!hi
!hi
transmit
Wolvan hello
Wolvan
@Wolvan
Nov 19 2015 20:07
Wenn engel hassen
Wolvan Wenn engel hassen
NewXKitBot
@NewXKitBot
Nov 19 2015 20:12
Wolvan test
Wolvan
@Wolvan
Nov 19 2015 20:12
gut gut
noooiiiccceeee
NewXKitBot
@NewXKitBot
Nov 19 2015 20:13
Wolvan message from irc
Wolvan
@Wolvan
Nov 19 2015 20:13
message from gitter
NewXKitBot
@NewXKitBot
Nov 19 2015 20:16
Wolvan another message from IRC
Wolvan
@Wolvan
Nov 19 2015 20:16
message from gitter
and a 2nd message from gitter
well well
NewXKitBot
@NewXKitBot
Nov 19 2015 20:17
Wolvan perfect
Wolvan
@Wolvan
Nov 19 2015 20:17
!test
Bryan Tsang
@bvtsang
Nov 19 2015 20:20
asjdfjoiasiefoasjiefaewoifoawioefawefae
NewXKitBot
@NewXKitBot
Nov 19 2015 20:20
Wolvan hduihseiojsivhseifjwioashsduihs
Wolvan it's kind of slow from time to time
Wolvan like the message sending
Bryan Tsang
@bvtsang
Nov 19 2015 20:21
huh
Wolvan
@Wolvan
Nov 19 2015 20:21
hm... looks like the delay stopped
maybe a quick net-cutout or something
Bryan Tsang
@bvtsang
Nov 19 2015 20:22
这是一个考试
Wolvan
@Wolvan
Nov 19 2015 20:22
blob
it properly transmits japanese as well
Bryan Tsang
@bvtsang
Nov 19 2015 20:22
你好
Wolvan
@Wolvan
Nov 19 2015 20:22
blob
blob
Bryan Tsang
@bvtsang
Nov 19 2015 20:23
oh you know what I know what to test
lol
Wolvan
@Wolvan
Nov 19 2015 20:23
what
Bryan Tsang
@bvtsang
Nov 19 2015 20:23
Z̼͞ͅĄ͖̬̜̯́L̷͚̀͠G̟̹̭O̠͙̗̻̥̬͙͇͜͝
:smile:
Wolvan
@Wolvan
Nov 19 2015 20:24
weeeelll....
Bryan Tsang
@bvtsang
Nov 19 2015 20:24
lol, it's okay if it doesn't do that
zalgo's an edge case
Wolvan
@Wolvan
Nov 19 2015 20:24
blob
weeeeeellll
Bryan Tsang
@bvtsang
Nov 19 2015 20:24
It doesn't even render properly on my own screen lol
Wolvan
@Wolvan
Nov 19 2015 20:25
yeah
Bryan Tsang
@bvtsang
Nov 19 2015 20:25
Screen shot 2015-11-19 at 12.24.29 PM.png
Wolvan
@Wolvan
Nov 19 2015 20:25
yeah it looks the same to me
but it does kind of work
Bryan Tsang
@bvtsang
Nov 19 2015 20:25
Oh, the IRC bot doesn't do anything with file uploads?
Wolvan
@Wolvan
Nov 19 2015 20:25
which is good to know
what?
Bryan Tsang
@bvtsang
Nov 19 2015 20:25
the image I just shared
Wolvan
@Wolvan
Nov 19 2015 20:26
it sends a blob url
like this
blob
Bryan Tsang
@bvtsang
Nov 19 2015 20:26
oh okay
Wolvan
@Wolvan
Nov 19 2015 20:26
how would you suggest to do this?
Bryan Tsang
@bvtsang
Nov 19 2015 20:27
It's fine as is; if we want to be a bit nice, we could format it like bvtsang uploaded filename.png: url or something
Wolvan
@Wolvan
Nov 19 2015 20:28
that's the thing
Bryan Tsang
@bvtsang
Nov 19 2015 20:28
or s/shared/uploaded/
Wolvan
@Wolvan
Nov 19 2015 20:28
I am thinking on HOW to format it
Bryan Tsang
@bvtsang
Nov 19 2015 20:28
It's not too important
Wolvan
@Wolvan
Nov 19 2015 20:28
like, how to grab the necessary information
Wolvan
@Wolvan
Nov 19 2015 20:37
I think I have to regex-parse the markdown
but first I need to cook dinner
Bryan Tsang
@bvtsang
Nov 19 2015 20:38
In this case I'd like to avoid regex-parsing; maybe there's a Markdown library you can use?
Wolvan
@Wolvan
Nov 19 2015 20:45
hmmm, what reason to avoid parsing?
Bryan Tsang
@bvtsang
Nov 19 2015 20:51
Regular expressions are prone to errors
It's the same reason why I don't like parsing HTML with regex
Or more generally, I don't want to use regex to parse things with (recursive) structure
and there are probably better tools
but that turns markdown into HTML
Bryan Tsang
@bvtsang
Nov 19 2015 21:13
ohh
okay, I guess that was different from what I had in mind
Wolvan
@Wolvan
Nov 19 2015 21:17
what did you have in your mind?
Bryan Tsang
@bvtsang
Nov 19 2015 21:17

which was more like

template = "%s uploaded %s: %s"
if text only contains image:
    alt = image.alt
    src = image.src
    return template % (user, alt, src)

or something

Nevermind, ignore everything I said
Wolvan
@Wolvan
Nov 19 2015 21:19
I can't do that with node afaik
since I don't have a dom
Bryan Tsang
@bvtsang
Nov 19 2015 21:20
...wait you can get a dom
markdown -> html -> dom
Wolvan
@Wolvan
Nov 19 2015 21:46
in node? How?
Wolvan
@Wolvan
Nov 19 2015 21:48
bvtsang. NODE
node does not have any document afaik
Bryan Tsang
@bvtsang
Nov 19 2015 21:48
I don't know node that well, but I thought it had access to most Javascript methods
Wolvan
@Wolvan
Nov 19 2015 21:49
not dom related
since a dom does not exist in node
Maybe I'm not the best person to ask
Wolvan
@Wolvan
Nov 19 2015 21:52
used jsdom before
it's a bit overkill for just getting an image url from markdown
Bryan Tsang
@bvtsang
Nov 19 2015 21:56
Okay, then in that case maybe regex is fine
Sorry for leading you down this wild goose chase
Wolvan
@Wolvan
Nov 19 2015 21:57
no need to apologize, bud
you are honestly just trying to help
and I am grateful for that
Bryan Tsang
@bvtsang
Nov 19 2015 21:58
:3
Wolvan
@Wolvan
Nov 19 2015 22:29
OK, let's test
it crashed
Welp
time to try and fix it
hey, I did it!
hehe
blob
ok, the link is still broken
blob
@bvtsang sorry for the spam
Wolvan
@Wolvan
Nov 19 2015 22:36
blob
blob
blob
blob
@bvtsang look!
Wolvan
@Wolvan
Nov 19 2015 22:41
blob
Wolvan
@Wolvan
Nov 19 2015 22:49
!list
Wolvan
@Wolvan
Nov 19 2015 22:56
!list
NewXKitBot
@NewXKitBot
Nov 19 2015 22:56
[GitterBridge] There are no users online.
Bryan Tsang
@bvtsang
Nov 19 2015 22:57
nice
Wolvan
@Wolvan
Nov 19 2015 22:57
!list
NewXKitBot
@NewXKitBot
Nov 19 2015 22:57
[GitterBridge] There are no users online.
Wolvan
@Wolvan
Nov 19 2015 22:57
not exactly nice
list isn't working properly
!list
NewXKitBot
@NewXKitBot
Nov 19 2015 23:00
[GitterBridge] There are no users online.
Wolvan
@Wolvan
Nov 19 2015 23:00
hmmmm
NewXKitBot
@NewXKitBot
Nov 19 2015 23:06
Wolvan has left.
Wolvan has joined.
Wolvan
@Wolvan
Nov 19 2015 23:06
!list
NewXKitBot
@NewXKitBot
Nov 19 2015 23:06
[GitterBridge] There are no users online.
Wolvan
@Wolvan
Nov 19 2015 23:12
!list
NewXKitBot
@NewXKitBot
Nov 19 2015 23:12
[GitterBridge] There are 2 User(s) online: NewXKitBotv2, Wolvan
Wolvan
@Wolvan
Nov 19 2015 23:15
!list
!list
NewXKitBot
@NewXKitBot
Nov 19 2015 23:19
[GitterBridge] There are 1 User(s) online: Wolvan
Wolvan
@Wolvan
Nov 19 2015 23:19
BAM
@0xazure is going to hate the way I implemted commands haha