These are chat archives for dcsan/gitterbot

1st
Sep 2015
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:12
@ArielLeslie here is the RegEx https://regex101.com/r/hH5cN7
Ariel
@ArielLeslie
Sep 01 2015 15:13
I took a look at it. I can't commit to making any changes (since I'm getting paid to do real work ;) ), but I added comments to the issue.
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:14
@ArielLeslie lolz :D
camperbot needs volunteers. :worried:
Ariel
@ArielLeslie
Sep 01 2015 15:14
a colon isn't a wordbreak, so :sparkles:thanks:D :sparkles:thanks:D doesn't match.
CamperBot
@camperbot
Sep 01 2015 15:14
if you want to thank someone, put an @ before their name!
Ariel
@ArielLeslie
Sep 01 2015 15:15
thanks:D
CamperBot
@camperbot
Sep 01 2015 15:15
if you want to thank someone, put an @ before their name!
Rory Smith
@alanbuchanan
Sep 01 2015 15:15
why should it match 'thxq' or 'thanky'? i don't think i've ever seen someone write that
CamperBot
@camperbot
Sep 01 2015 15:15
if you want to thank someone, put an @ before their name!
Ariel
@ArielLeslie
Sep 01 2015 15:15
huh. it is now.
@abhisekp thanks:D
CamperBot
@camperbot
Sep 01 2015 15:15
arielleslie sends brownie points to @abhisekp :sparkles: :thumbsup: :sparkles:
:star: 368 | @abhisekp | http://www.freecodecamp.com/abhisekp
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:16
@ArielLeslie but it mathes in the regex https://regex101.com/r/hH5cN7/13
Ariel
@ArielLeslie
Sep 01 2015 15:16
It's matching now.
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:17
@alanbuchanan :point_up: September 1, 2015 8:45 PM for some really lazy ppl maybe. :P
thanks:D
CamperBot
@camperbot
Sep 01 2015 15:17
if you want to thank someone, put an @ before their name!
Rory Smith
@alanbuchanan
Sep 01 2015 15:17
@abhisekp really lazy people will type 'ty'
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:18
@alanbuchanan yep!
@alanbuchanan i did get that sometimes
Rory Smith
@alanbuchanan
Sep 01 2015 15:18
@abhisekp but surely not thxq
CamperBot
@camperbot
Sep 01 2015 15:18
alanbuchanan sends brownie points to @abhisekp :sparkles: :thumbsup: :sparkles:
:warning: alanbuchanan already gave abhisekp points
Ariel
@ArielLeslie
Sep 01 2015 15:18
I see 'ty' a lot
I haven't seen thxq, but I have seen thx
CamperBot
@camperbot
Sep 01 2015 15:18
if you want to thank someone, put an @ before their name!
evaristoc
@evaristoc
Sep 01 2015 15:22
@abhisekp and everyone: not that I am against the "thanks" part, but... it is so relevant? I think "perfection is the enemy of the good"...
CamperBot
@camperbot
Sep 01 2015 15:22
evaristoc sends brownie points to @abhisekp :sparkles: :thumbsup: :sparkles:
:star: 369 | @abhisekp | http://www.freecodecamp.com/abhisekp
evaristoc
@evaristoc
Sep 01 2015 15:23
Using only regex is hard, @abhisekp. Try to hit the "right ones" is not easy. Did you see what happen with my message above, for example?
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:24
@evaristoc your message needs NLP support for perfection.
evaristoc
@evaristoc
Sep 01 2015 15:24
Hehehe!!!
Even NLP is not that perfect (and you know that if you have Siri on your iPhone...)... But it is really good...
Or actually, the best you can get...
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:25
@evaristoc i've seen a lot of Siri replies in Quora posts. But I don't have any hands-on experience.
evaristoc
@evaristoc
Sep 01 2015 15:26
Hehehe!
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:26
@evaristoc Siri is really good.
Ariel
@ArielLeslie
Sep 01 2015 15:26
@evaristoc Siri imitates NLP really well because they have hundreds of humans specifically creating canned "human-like" responses to input patterns
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:28
@ArielLeslie really? I thought it was automated using texts from various digital textual materials.
evaristoc
@evaristoc
Sep 01 2015 15:28
(exactly the problem we will have in the FreeCodeCamp/DataScience room, that it is why I am trying not to create high expectations... @ArielLeslie Come and visit us!)
@evaristoc but @ArielLeslie can't volunteer. She gets paid to do real work :P
Ariel
@ArielLeslie
Sep 01 2015 15:30
@abhisekp That's not what I meant. I meant I'm currently at work. :laughing:
evaristoc
@evaristoc
Sep 01 2015 15:30
Hahahaha!!!
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:30
@ArielLeslie ok. I was just kidding
Ariel
@ArielLeslie
Sep 01 2015 15:31
:P
evaristoc
@evaristoc
Sep 01 2015 15:37

In my view (if you allow me...), @abhisekp, try this "thanks" stuff not taking you all the most important part of the camperbot contribution? Unless you really think is very important or you are really plenty of time... You are already making history just with this camperbot giving brownies... I actually would say: tweak it to find the point where it produces the less false positives possible (false positives: acting when it is not required)

But anyway... this is a VERY personal view

CamperBot
@camperbot
Sep 01 2015 15:37
evaristoc sends brownie points to @abhisekp :sparkles: :thumbsup: :sparkles:
:warning: evaristoc already gave abhisekp points
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:37
@evaristoc
var no_thanks = "I can't just say thanks to you.";
console.log(no_thanks);
CamperBot
@camperbot
Sep 01 2015 15:37
abhisekp sends brownie points to @evaristoc :sparkles: :thumbsup: :sparkles:
:warning: could not find receiver for evaristoc
evaristoc
@evaristoc
Sep 01 2015 15:38
Hahahaha!!!
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:38
@evaristoc you're right. @dcsan suggests me the same thing. He wants us to work in some productive task.
evaristoc
@evaristoc
Sep 01 2015 15:39
@abhisekp follow the leader...
(I still like your code, though!)
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:39
@evaristoc I will but I'm looking forward to the day when I'll be one. :D
evaristoc
@evaristoc
Sep 01 2015 15:40
Hahaha!
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:41
@evaristoc, @dcsan is working on a new bot and I don't know what changes he is going to make. It's a complete re-write.
@evaristoc i guess, it will be more maintainable and extendable then. :D
evaristoc
@evaristoc
Sep 01 2015 15:44

Yeah! I read... One thing for sure is that he is busy with the real-time implementation... For what you say, I guess there will be more modularization...

Wonder how he is approaching the regex stuff... I would like our project to help, but as @ArielLeslie mentioned too, to make this thing works you need to develop good training sets... and I don't think we have time for that... this is a VERY common problem, anyway...

Well, doctor... going to work on the project. Take care!
Abhisek Pattnaik
@abhisekp
Sep 01 2015 15:46
@evaristoc :wave: bye for now.
evaristoc
@evaristoc
Sep 01 2015 15:48
Actually, @abhisekp can I consult something with you? DM?
dc
@dcsan
Sep 01 2015 17:33
agreed, a lot of effort here in stuff that doesn't really have a big impact or benefit for the end user
Abhisek Pattnaik
@abhisekp
Sep 01 2015 17:34
@dcsan you're working on stuffs that matter and i'm working on stuffs that doesn't matter to get to know the stuffs that matter. :P
dc
@dcsan
Sep 01 2015 17:34
i dont want to do a deply that will end up taking a few hours to review / troubleshoot without any actual benefit
one thing that would be good to see is Google analytics integration
sure there may have been some other tickets that are p1
Abhisek Pattnaik
@abhisekp
Sep 01 2015 17:35
@dcsan the thing is i'm trying to get to know about gitterbot source code.
dc
@dcsan
Sep 01 2015 17:35
most of them are nt trivial tho
Abhisek Pattnaik
@abhisekp
Sep 01 2015 17:36
@dcsan i'm still struggling to know about the source code overall design.
evaristoc
@evaristoc
Sep 01 2015 17:45
A question, @dcsan: how are you thinking on that integration with google analytics if you don't own the gitter page? I am maybe missing something...
Abhisek Pattnaik
@abhisekp
Sep 01 2015 17:47
@evaristoc, mydigitalself says in here :point_right: August 26, 2015 3:07 PM that it can be done using camperbot.
evaristoc
@evaristoc
Sep 01 2015 17:50

and you certainly wouldn't be able to use GA, you'd don't have access to our pages, so you'd have to do it via camperbot or such.

it's a feature we're looking to add next year, some basic community analytics.

Abhisek Pattnaik
@abhisekp
Sep 01 2015 17:51

and you certainly wouldn't be able to use GA, you'd don't have access to our pages, so you'd have to do it via camperbot or such.

it's a feature we're looking to add next year, some basic community analytics.

evaristoc
@evaristoc
Sep 01 2015 17:52
Ah... my understanding was that he suggested to get the data through camperbot, not GA
Because he said: we certainly wouldn't be able to use GA (at all for what I understood...)
So... it is not clear to me yet...
evaristoc
@evaristoc
Sep 01 2015 17:57
I will try to find time to see if there are other similar experiences and let you know...
dc
@dcsan
Sep 01 2015 18:03
just sending events from camperbot
event tracking tags would say which room etc.
could also add the text itself as a "label" so then the data is in GA
also the username so we know new/returning
we wont get geographic or any IP stuff but can get tight data
evaristoc
@evaristoc
Sep 01 2015 18:09
@dcsan and do you have an ID var visitor = ua('UA-XXXX-XX')?
dc
@dcsan
Sep 01 2015 18:09
class Metrics {

    // constructor(public fn:string) {}

    static track(input:Input, category:string="_category", action:string="_action") {
        Players.trackInput(input);
        var userId = input.from.id;
        var evt:IEvent = {
            ec: category,
            ea: action,
            ev: input.chat.id,
            el: input.text
        }
        // console.log("Metrics.track>", evt);
        botan.track(input, category);
        var visitor = ua(AppConfig.GA_KEY, userId, {strictCidFormat: false});
        visitor.event(evt).send();
    }

    static simple(action: string, category: string) {
        var visitor = ua(AppConfig.GA_KEY, "system");
        // console.log("Metrics.simple>", action, category);
        var evt:IEvent = {
            ec: category,
            ea: action
        }
        visitor.event(evt).send();
    }

}

export = Metrics;
evaristoc
@evaristoc
Sep 01 2015 18:10
@dcsan botan or universal-analytics?
dc
@dcsan
Sep 01 2015 18:10
ua
im using botan as well to keep GA honest
evaristoc
@evaristoc
Sep 01 2015 18:11
Do you have the id?
@dcsan I think the id is related to a "page" (I am not totally sure now...)... can we see the bot as a "page"?
Maybe yes...