[09:12:28] 10WM-Bot: Add @time command - https://phabricator.wikimedia.org/T118744#1844111 (10Petrb) I made this a GCI task so hopefully someone implement it [09:27:27] addshore! [09:27:49] why did the stuff I added to the systemdata things page not appear? :< [09:28:05] even though I pulled and restarted /reloaded and everything ages ago :( [09:28:08] which stuff [09:28:49] let me ssh [09:28:51] to wm-bot [09:31:23] btw I have big plans to change whole thing [09:31:28] the systemdata page suck [09:31:40] the bot should store all data into 1 sql database in first place [09:31:49] so that this systempage could be dynamically generated [09:36:27] root@wm-bot:/mnt/share/wikimedia-bot# diff bin/wmib.exe /mnt/share/wm-bot/wmib.exe [09:36:28] Binary files bin/wmib.exe and /mnt/share/wm-bot/wmib.exe differ [09:36:30] addshore: ^^^ [09:36:46] also, labs has graphite [09:36:46] idk HOW you updated the bot but, meh it looks like it didn't really happen? [09:36:50] what is that [09:36:52] you could send dtaa there for all channels! [09:37:07] I followed the docs on the page you linked me to :p [09:37:18] graphite is a time seried number store basically [09:37:21] *series [09:38:04] daily.wm-bot.channel._wikidata.messages = 24515 [09:38:25] I don't see what is that good for [09:38:32] but you are welcome to implement it XD [09:38:40] :P [09:38:52] and tracking messages from suers per day [09:39:02] then you can easily graph it alllllll!! :P [09:39:21] addshore: I re-built the bot and it seems to work now [09:39:27] yay :) [09:39:28] @systeminfo [09:39:28] * wm-bot5 is online; channels: 67 connected: True working: True queue: 0 [09:39:28] * wm-bot4 is online; channels: 67 connected: True working: True queue: 0 [09:39:28] * wm-bot3 is online; channels: 69 connected: True working: True queue: 0 [09:39:28] * wm-bot2 is online; channels: 68 connected: True working: True queue: 0 [09:39:29] ty!!!! [09:40:16] that graphite thing can be implemented as extension the bot is pretty easy to enhance that way [09:40:25] you can hook pretty much to anything inside of bot's core [09:40:37] + making exts in c# is a piece of cake [09:40:43] unlike c++ :P [09:40:49] where it's true hell of a nightmare [09:41:46] on other hand... c#... wm-bot uses more than 1GB of RAM :D [09:41:49] that's a lot for simple IRC bot [09:42:23] Memory usage: 1015092kb Database size: 24546.396484375kb [09:42:45] only program that measures db in microbyte [09:42:48] *microbytes [10:00:09] :O [10:04:09] now I can get the suer count for #wikidata using the xpath //*[@id="H-wikidata"]/td[1]/span :) [10:08:30] petan: https://gerrit.wikimedia.org/r/#/c/256390/ :D [10:32:38] 10WM-Bot, 3Google-Code-In-2015: Add @time command - https://phabricator.wikimedia.org/T118744#1844250 (10Aklapper) >>! In T118744#1844111, @Petrb wrote: > I made this a GCI task so hopefully someone implement it Adding #Google-Code-in-2015 project [10:41:25] addshore: hah, there probably could also be another way to retrieve this information, perhaps bot could submit this somwhere, like redis? Or whatever... Or maybe it could just perform updates on some psql table which would be globally readable [10:56:19] addshore: why do you need that user count btw [10:56:21] :D [11:02:50] petan: its part of https://grafana.wikimedia.org/dashboard/db/wikidata-social-followers [11:36:29] addshore [11:36:32] we need this for huggle XD [11:36:34] yo [11:36:39] a dashboard? :P [11:36:40] this grafana thing [11:36:47] haha :P [11:37:10] the reason this looks so pretty of course is because im being paid to do it ;) [11:37:20] did you see the new revscoring thing? [11:38:00] I made once these ugly graphs: http://tools.wmflabs.org/huggle/toolstat [11:38:14] addshore: how dare you ask for money! [11:38:31] * petan slaps addshore with 100 bucks [11:38:37] well, the graphs are super easy [11:38:42] just send the data to graphite!!!! [11:38:54] mhm [11:38:59] where I download it [11:39:03] ? [11:39:45] that graphite thing [11:39:48] I think I found it :P [11:39:53] you dont need to, there is one on labs :p [11:39:56] apparently google didn't take me to page about the rock [11:40:00] aha [11:40:04] interesting [11:40:23] https://github.com/wikimedia/analytics-limn-wikidata-data/blob/master/graphite/social/irc.php#L21 [11:40:27] I always wanted some graphs for vandalism trends [11:40:28] so thats the one for the production machine [11:40:29] on english wikipedia [11:40:39] and you can just change the hostname for the labs on [11:40:40] I even have methods to generate these data just no way to visualize [11:40:40] one [11:40:49] grafana.wikimedia.org then has access to both datasets [11:41:00] petan: then its EEEEASSSY :D [11:41:10] add the data to graphite and I'll make you a dashboard [11:41:20] I need to figure out how to add the data first :P [11:41:56] echo \" `date +%s`\" | nc -q0 [11:42:15] netcat o.o [11:42:15] echo \" \" | nc -q0 [11:42:20] yuh ;) [11:42:24] how do you prevent malicious users [11:42:30] you dont :P [11:42:32] who just netcat some crap on these ports [11:42:47] ban those malicious users from labs! ;) [11:43:11] it's not that easy as you couldn't even find who they are really :P [11:43:34] netcat doesn't send user identification together with teh tcp packets :D [11:43:53] that is one of reasons I implemented tokens to wm-bot's NetCat feature [11:44:08] you know you can just netcat some text to wm-bot to relay that to IRC channels I guess [11:44:22] quite popular feature on labs :P [11:45:00] that way you don't need to spawn your own IRC bot just to send messages to IRC and you can easily send output of your shell scripts directly to channels [11:46:33] that usercount in wm-bot is refreshed much more often than daily btw so you could probably make like "what hour a day we have most users" graph as well :P [11:46:43] addshore: ^ [11:47:14] mhhhm, I know :P but we only need daily ;) [15:41:17] Join error: Cannot join channel (+i) - you must be invited channel: wm-bot5 ##TheMesquito reason: InviteOnly [16:51:45] @systeminf [16:51:46] @systeminfo [16:51:46] * wm-bot5 is online; channels: 67 connected: True working: True queue: 0 [16:51:47] * wm-bot3 is online; channels: 69 connected: True working: True queue: 0 [16:51:47] * wm-bot4 is online; channels: 67 connected: True working: True queue: 0 [16:51:47] * wm-bot2 is online; channels: 68 connected: True working: True queue: 0 [16:52:05] @systemdata [16:52:10] @systeminfo [16:52:10] * wm-bot5 is online; channels: 67 connected: True working: True queue: 0 [16:52:10] * wm-bot3 is online; channels: 69 connected: True working: True queue: 0 [16:52:10] * wm-bot4 is online; channels: 67 connected: True working: True queue: 0 [16:52:10] * wm-bot2 is online; channels: 68 connected: True working: True queue: 0 [16:52:16] I am running http://meta.wikimedia.org/wiki/WM-Bot version wikimedia bot v. 2.8.0.0 [libirc v. 1.0.3] my source code is licensed under GPL and located at https://github.com/benapetr/wikimedia-bot I will be very happy if you fix my bugs or implement new features [16:52:16] @help [17:05:33] @systeminfo [17:05:33] * wm-bot5 is online; channels: 67 connected: True working: True queue: 0 [17:05:33] * wm-bot3 is online; channels: 64 connected: True working: True queue: 0 [17:05:33] * wm-bot4 is online; channels: 67 connected: True working: True queue: 0 [17:05:33] * wm-bot2 is online; channels: 68 connected: True working: True queue: 0 [21:58:19] DEBUG XmlRcs FATAL: redis is empty for 10 seconds [21:59:30] DEBUG XmlRcs FATAL: redis is empty for 10 seconds