« first day (205 days earlier)      last day (3199 days later) » 

12:38 AM
@Sam sure, got anything in mind?
 
 
8 hours later…
Sam
8:33 AM
@gunr2171 Yeah, I was thinking of borrowing a couple from Pham (panic and fox) and adding a few new ones (maybe "coffee", "blame" and a few others).
 
Sam
8:48 AM
@Gunr Any chance I could have (bot) owner privs?
 
 
11 hours later…
7:46 PM
!!status
!!status
!!go
!!status
!!go
!!go
!!time
~ ~ Sun Aug 02 2015 21:49:54 GMT+0200 (W. Europe Daylight Time)
!!coffee
~ ~ ~ 418 I'm a TEAPOT
!!milke
~ What are you talking about?
 
@KennyBOT !!milk
 
It does commands for !!milk, !!coffee, !!cupcake
 
@KennyBOT !!milk
 
you don't need to name the vot
 
user4639281
!!milk
 
7:53 PM
~ I'm milking the cow ....
 
user4639281
!!wut
 
~ Maybe lookup my instructions?
 
@KennyBOT !!cupcake
 
user4639281
You don't need to ping
 
don't use the name of the bot
 
7:55 PM
!!cupcake
 
~ One cupcake on its way for @honk ....
 
it simply listens for all mesages
 
ah!
 
user4639281
!!status
 
7:55 PM
It deoes keep state so it doesn't respond always to prevent spamming the room
 
!!coffee
 
~ Too much coffee is bad....
 
user4639281
Interesting example bot.
 
some commands only work a few times and then have to wait for 120 minutes or so
 
Funny :)
 
7:56 PM
And you can star messages
and unstar them...
 
~ Not everything is star-worthy...
~ Stars get removed under peer-pressure?
 
!!star
 
~ That is all gibberish to me...
 
user4639281
!!help
 
~
!!coffee
!!cupcake
!!milk
!!SHU
!!silence
!!status
!!help
!!wut
 
7:58 PM
we could try a train....
Evening!
 
user4639281
?
 
?
 
?
?
 
?
 
user4639281
?
 
8:00 PM
?
 
needs four messages
Hello
 
Hello
 
user4639281
Hello
 
user4639281
The spam filter won't let me submit the same message twice.
 
Hello
 
8:01 PM
Hello
 
user4639281
Hello
 
Hello
 
Hello
 
user4639281
Goodbye
 
Goodbye
 
8:02 PM
Goodbye
 
user4639281
Goodbye
 
Goodbye
 
works as a charm
 
@rene Is there somewhere a website which explains how to make a bot for chat?
 
user4639281
Probably the API docs
 
8:03 PM
I've used what was available on MSE
And used some reverse engineering
It runs in the browser so I have no code to login
That is easier than what Closey and Smokey have to do
@honk I'll see if I can find them
 
@rene Only if you can find it quickly...
 
The most interestimg part is the code that prevents the bot from being throttled. @Sam helped with that to get the right formula
@honk OK, hold on
 
No need to hurry :)
What I meant: Don't spend too much time on it...
 
50
Q: How do the Stack Exchange WebSockets work? What are all the options you can send to them?

DoorknobThe Stack Exchange WebSockets are handy for various things (like handling spam). For example, try running this JavaScript in your browser's console: var w = new WebSocket("ws://qa.sockets.stackexchange.com/"); w.onmessage = function(e) { console.log(e) }; w.onopen = function() { w.send("155-ques...

 
Thanks! Bookmarked that. Will read the following evenings. Why does a bot get throttled? Does chat (or whatever) notive that it is a bot?
 
8:10 PM
That is the most important post I used, further I got the chat.js here
@honk No, the bot is also subject to this
 
@rene So a bot can work around those limits? Or could any user do that?
 
No, it can't. As users tend to abuse the bot you want to prevent it gets throttled
so you queue up messages and then send them if the bot is under the rate limit
 
Ah, ok. Otherwise it would reset the limit counters and block itself forever...
 
if 4 users send a command to the bot, it can't send 4 responses at once, it can only send a message every 2 seconds (at most)
@honk yep, we have had that kind of trouble with Closey in the past
 
@rene This explains why Closey sometimes appears to be a bit unresponsive ;)
 
8:19 PM
Yep
 
Thank you for explaining so many things to me!
 
np
I'll see your bot in 6 to 8 units...
 
No way ;) Would need to learn some new languages first. I just know some old-school C, C++, MFC. But I'm always interested in how things work...
 
Sam
@rene Yeah, not that we actually ever used the formula. lol
 
@Sam It is in my bot:
function rateLimit(x) {
                return Math.min((4.1484 * Math.log(x < 2 ? 2 : x) + 1.02242), 20);
            }
 
Sam
8:24 PM
Oh.
Ok, well I never noticed that.
 
@honk I don't think there is a bot in C++ yet ... :)
 
@rene You mean, that would be a challenge, right? ;)
 
Yeah
 
Next life, maybe ;)
 
Sam
Actually, if the right libs exist (e.g., websockets, dom parsers, etc.), it wouldn't be too difficult.
 
8:28 PM
Good luck...
 
Sam
Screw C++, I love C# too much.
 
you are talking about that funky pointer stuff thingy language where users have lengthy debates about which compliance level their code is...
 
Sam
Meh.
 
Meh same.
OK I call it day...
 
Sam
Cya
 
8:34 PM
!!stop
 
~ WUT?
!!stop
 
9:32 PM
@Sam, uh, hum. weird. working on it
 
Sam
K, thanks.
Btw, I can login fine via the web ui.
 
oh, hum. I guess that password works until you ssh in and change it
OH DURP, I know what the problem is
 
Sam
Oh?
 
ok, try ssh now
 
Sam
Awesome, it works now. \o/
 
9:35 PM
great. for the record the only reason you need ssh is to control your password.
jenkins won't let you change your password with the current setup
 
Sam
Ok.
 
Sam
9:55 PM
Well, here goes my first test using jenkins...
please don't screw up
 
Hey everyone! (SO Close Vote Chatbot started, linux testing!)
 
Sam
Ok, so far, so good.
@Clo next tags
 
Refreshing the tag listing. Please wait...
@Sam The next 5 tags are: 199, 135, 133, 128, 116
@Sam I've noticed you've started reviewing. I'll make a new session for you. Good luck!
Sam passed a audit!
@Sam It looks like you've finished reviewing . Is that right?
 
Sam
10:11 PM
@Closey yes
 
@Sam Ok, I've marked it as a completed tag.
 
Sam
@clo my completed tags
 
@Sam Showing all tags cleared by you that I have on record:
 | Tag Name | Times Cleared | Last Cleared            |
 |----------------------------------------------------|
 | asp.net  | 1             | 2015-08-02 22:11:39 UTC |
@Sam Thanks for reviewing! To see more information use the command last session stats.
 
Sam
Well the timestamp isn't accurate.
@clo last session stats
 
@Sam Your last completed review session ended 2 minutes and 44 seconds ago and lasted 7 minutes and 58 seconds. You reviewed 19 items, averaging a review every 25 seconds.
 
Sam
10:14 PM
That sounds right.
Still no idea what happens on prod.
@Ris Visiting are we? ;)
 
i'm all for botwars
 
Sam
Oh, right.
Well this bot is for the so close vote reviewers room.
@Clo commands
 
Below is a list of commands for the Close Vote Chat Bot

Everyone
    alive - A simple ping command to test if the bot is running.
    commands - Shows this list.
    help - Prints info about this software.
    running commands - Displays a list of all commands that the chat bot is currently running.
    status - Tests if the chatbot is alive and shows simple info about it.

Registered
    audit stats - Shows stats about your recorded audits.
    completed tags [min <#>] - Shows the latest tags that have been completed by multiple people.
 
Sam
@clo audit stats
 
@Sam Stats of all tracked audits by tag:
 | Tag Name | %      | Count |
 |---------------------------|
 | mysql    | 100.00 | 1     |
 
Sam
10:23 PM
@Clo stop bot
 
@Sam I'm shutting down...
Goodbye!
 
Sam
@Gunr That seems to have worked quite well. ^
 
11:12 PM
Hey everyone! (SO Close Vote Chatbot started, linux testing!)
 
Sam
@clo panic!!!!!
@Clo commands
 
Below is a list of commands for the Close Vote Chat Bot

Everyone
    alive - A simple ping command to test if the bot is running.
    who ...? - A "toy command" for blaming a chat room user.
    commands - Shows this list.
    fox - A "toy command" for posting the meme fox gif.
    help - Prints info about this software.
    panic!!! - A "toy command" for posting an appropriate gif.
    running commands - Displays a list of all commands that the chat bot is currently running.
    status - Tests if the chatbot is alive and shows simple info about it.
 
Sam
@Clo who broke you this time?
 
@Sam It's definitely Rishav Kundu.
 
Sam
@Clo who?
 
11:14 PM
@Sam points finger at Sam
 
Sam
@Clo Which one here drinks the most coffee?
 
@Sam points finger at Closey
 
Sam
lol
@Clo when will SO reach 10mil Qs?
@clo fox
 
Sam
@clo panic
@clo when blah blah blah
 
11:20 PM
posted on August 02, 2015

PR #95: Use SOCVR.Net package

 
Sam
... panic regex needs adjusting.
@clo stop bot
 
@Sam I'm shutting down...
Goodbye!
Hey everyone! (SO Close Vote Chatbot started, linux testing!)
 
posted on August 02, 2015

PR #95: Use SOCVR.Net package

 
Sam
@Clo when
 
@Sam 4/24/2048
 
Sam
11:26 PM
@clo panic
 
Sam
@Clo blame
 
@Sam It's definitely Rishav Kundu.
 
Sam
@clo who
 
@Sam looks at gunr2171
 
Sam
11:27 PM
@clo which one of us blah blah
@Gunr Any thoughts on the new toys?
 
Look fine so far. Looked through the code briefly and had no problems.
I'm not here now though, going to leaving in a sec
also, I'm (yeah, sorry, delayed) going to start the v2 func spec
 
Sam
Okie dokie, np.
@clo stop bot
 
@Sam I'm shutting down...
Goodbye!
 
Sam
I'm going to sign off for the night, cya tomorrow.
 

« first day (205 days earlier)      last day (3199 days later) »