<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I'd suggest sending it as one message so it's not interrupted by
other chats in between. Matrix supports html being sent so you can
just place <br> line breaks.<br>
<br>
This is the hideous bash I was using to do it before, found it on
my server: <a class="moz-txt-link-freetext" href="https://pastes.dev/5San77eoCU">https://pastes.dev/5San77eoCU</a> - I can't remember what
broke but if you want to use it for ideas go ahead.<br>
</p>
<div class="moz-cite-prefix">On 24/7/23 20:30, Ben Bonacci wrote:<br>
</div>
<blockquote type="cite"
cite="mid:82ea5e44-9a0c-a3f4-6a85-2085144f709a@benbonacci.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hi Nate,</p>
<p>I've recorded the script in action which can be accessed with
this link: <a class="moz-txt-link-freetext"
href="https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4"
moz-do-not-send="true">https://benbonacci.com/files/shares/1w-bug-safari-demo.mp4</a>
(Expires in 1 week)</p>
<p>Regards,</p>
<p>Ben<br>
<span style="font-family:monospace"></span></p>
<div class="moz-cite-prefix">On 23/7/23 23:43, Nate Graham wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1533e394-d4ee-c584-d890-025c9786e776@kde.org">Very
cool stuff. Can we see it in action anywhere? <br>
<br>
Nate <br>
<br>
<br>
On 7/23/23 01:38, Ben Bonacci wrote: <br>
<blockquote type="cite">Hi Ben, <br>
<br>
Thanks for the suggestion! Now after each request the script
will wait 1-5 seconds before making the next request. <br>
<br>
Regards, <br>
<br>
Ben <br>
<br>
On 22/7/23 22:30, Ben Cooksley wrote: <br>
<blockquote type="cite">On Sun, Jul 23, 2023 at 12:18 AM Ben
Bonacci <a class="moz-txt-link-rfc2396E"
href="mailto:ben@benbonacci.com" moz-do-not-send="true"><ben@benbonacci.com></a>
wrote: <br>
<br>
Hi everyone! <br>
<br>
<br>
Hi Ben, <br>
<br>
<br>
For the past few days I've been working on Bug Safari,
which is a <br>
Python <br>
script that gets statistics for Plasma bugs and sends a
report to the <br>
#plasma room on Matrix, which is one of the dot points
for KDE's <br>
Automation goal. <br>
<br>
I've now got the script uploaded to Invent at <br>
<a class="moz-txt-link-freetext"
href="https://invent.kde.org/bbonacci/bug-safari"
moz-do-not-send="true">https://invent.kde.org/bbonacci/bug-safari</a>
for anyone to look <br>
over, make <br>
improvements or implement. <br>
<br>
<br>
Thanks for this, I have just had a quick look over the code
and it overall looks pretty reasonable, and also follows
best practice of setting it's own user agent. <br>
<br>
One small suggestion would be to add some small sleeps in to
ensure that the server endpoints don't get hammered by your
requests. <br>
While the script by itself is fairly innocent, if similar
scripts were added for a series of other channels and they
all ran at the same time, this could result in a rush on the
server that could make it inaccessible to normal users (or
at the very least impact responsiveness). <br>
<br>
Adding some sleeps (ideally for a random number of seconds
as people tend to pick the same cron times to run stuff on)
will ensure this doesn't become an issue. <br>
<br>
<br>
Regards, <br>
<br>
Ben <br>
<br>
<br>
Cheers, <br>
Ben <br>
<br>
<br>
-- Ben Bonacci <br>
<a class="moz-txt-link-freetext"
href="https://benbonacci.com" moz-do-not-send="true">https://benbonacci.com</a>
<br>
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976 <br>
<br>
Quote of the Day: "What's the good of living if you
don't try a <br>
few things?" - Charles M. Schulz <br>
<br>
</blockquote>
-- <br>
Ben Bonacci <br>
<a class="moz-txt-link-freetext" href="https://benbonacci.com"
moz-do-not-send="true">https://benbonacci.com</a> <br>
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976 <br>
<br>
Quote of the Day: "If you only read the books that everyone
else is reading, you can only think what everyone else is
thinking." - Haruki Murakami <br>
<br>
</blockquote>
</blockquote>
<pre class="moz-signature" cols="72">--
Ben Bonacci
<a class="moz-txt-link-freetext" href="https://benbonacci.com" moz-do-not-send="true">https://benbonacci.com</a>
C0A9 E67F 8CDC B1A1 0860 1807 E018 065C C7DF 3976
Quote of the Day: "It does not matter how slowly you go as long as you do not stop." - Confucius</pre>
</blockquote>
</body>
</html>