/srv/irclogs.ubuntu.com/2021/04/05/#ubuntu-bd.txt

Brainstorm❗ भूकंप की चेतावनी / ভূমিকম্প সতর্কতা / EARTHQUAKE WARNING for India-Bangladesh Border Region (just felt near Goyerkāta?) — Follow for updates (Twitter)  15:21
Brainstorm🏠 भूकंप! ভূমিকম্প! Earthquake! 5.0 Mb tremor, registered by alomax, with 3 reports, occurred 11 minutes ago (15:20:01 UTC), with a crescent moon, Maināguri, India (26.67, 88.73) ± 107 km, ↓17 km likely felt 190 km away (in Jalpaiguri, Mainaguri…) by 137900 people (alomax.free.fr)  15:31
pavlushkaBrainstorm: 15:39
pavlushkaBrainstorm: help15:39
Brainstormpavlushka: Please use the command %help instead15:39
pavlushkaBrainstorm: %help15:39
pavlushka%help15:40
Brainstormpavlushka: Hi, I am LjL's bot! Say %modules or %commands to me in private to see my features. 15:40
pavlushkalast location of the earthquake15:43
pavlushkaLjL: how do I query that ^15:43
LjLThere is no way, you can look on Reddit or Twitter though where the bit posts... https://reddit.com/r/EEW15:45
LjLOr I can paste if for you I guess :p15:45
LjL🏠 भूकंप! ভূমিকম্প! Earthquake! 5.0 Mb tremor, registered by alomax, with 3 reports, occurred 11 minutes ago (15:20:01 UTC), with a crescent moon, Maināguri, India (26.67, 88.73) ± 107 km, ↓17 km likely felt 190 km away (in Jalpaiguri, Mainaguri…) by 137900 people (alomax.free.fr) 15:45
pavlushkaLjL: I follow the bot on twitter and checked that but thought here the bot will post diff than Mb scale15:46
LjLIt just posts whatever scale the source it's drawing from uses. Alomax uses Mb. Converting between scales is basically impossible15:47
pavlushkaok15:47
LjLIt may receive the same earthquake from other sources later but it doesn't send an update unless there is a 0.3 or higher magnitude change15:48
LjLThat's not ideal but otherwise it'd spam too much15:48
pavlushkaaha15:48
pavlushkaLjL: but the last post query should be a feature in my opinion15:50
pavlushkaLjL: looks like it's not your opinion yet15:51
LjLNobody asked before tbh, I can look at what I can do. It may be tricky to do it with a different earthquake per channel (so you may query it here but see an earthquake that has nothing to do with Bangladesh). But I'll give it a go15:52
pavlushkaLjL: yep, I said that keeping that scenario in mind, it could be from somewhere else but still15:53
pavlushkaseems sort of handy15:55
LjLthere's also another possible issue... the bot is on a slow server (and it's slow itself, still Python 2.7), so what happens is that after a significant earthquake, it often restarts itself because it's lagging too much. so if i make a command like that it may tell you "No earthquake" simply because it's just restarted15:56
pavlushkasounds like a problem worth not to do it15:57
LjLpavlushka, well, i've implemented it anyway. the above issue may render it useless, or at least not very useful, but there you have it. i only tested it briefly. %quake or %lastquake should get you it, and it's channel-specific so in this channel it will only reports events that would be sent to this channel... but it will give you the *last* report, regardless of whether it was actually sent (so the "±0.3 M" limitation doesn't apply here)17:54
LjLbut if you try it now it will just find no earthquakes because of course i restarted it after implementing it17:55
pavlushkaty LjL 18:21
pavlushka%quake18:22
BrainstormNameError: global name 'string' is not defined (file "/home/brainstorm/brainstorm/bot/modules/alerts.py", line 2737, in lastquake)18:22

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!