kameloso IRC bot

Anonymouse zorael at gmail.com
Fri Aug 16 14:17:06 UTC 2019


On Saturday, 2 February 2019 at 15:45:11 UTC, Anonymouse wrote:
> Announcing kameloso IRC bot, 1.0.0.
[...]

Tagging v1.2.0.

https://github.com/zorael/kameloso

It's been a while so diffs everywhere. One plugin was merged into 
another, a third was broken out of a fourth. Small tweaks, more 
clever things. Queued sends should not block the client by 
sleeping anymore. A few crashes fixed. Compilation memory use 
grew some. Binary size did too.

There's more Twitch stuff, but it remains optional at compilation 
since it's nothing you're going to use. As before, all plugins 
can be opted out from being compiled at all, by choice of dub 
build configuration or by manually tailoring dub.json[1]. So it's 
as lean as you want it to be. (Still pretty big.)

Plugins not crucial for the bot to properly operate can also be 
disabled at runtime, even if built, in the configuration file.

https://github.com/zorael/kameloso/blob/master/source/kameloso/plugins/hello.d

[1]: 
https://github.com/zorael/kameloso/blob/c00af3b9/dub.json#L22-L38


A week in 25 channels:

[...]
^C...caught signal 2!
[12:35:23] Aborting...
         Number of collections:  8
         Total GC prep time:  0 milliseconds
         Total mark time:  42 milliseconds
         Total sweep time:  2 milliseconds
         Max Pause Time:  10 milliseconds
         Grand total GC time:  46 milliseconds
GC summary:  176 MB,    8 GC   46 ms, Pauses   43 ms <   10 ms
./kameloso --DRT-gcopt=profile:1   419.10s  user 1243.21s system 
0% cpu 180:06:10.53 total
avg shared (code):         0 KB
avg unshared (data/stack): 0 KB
total (sum):               0 KB
max memory:                204 MB
page faults from disk:     0
other page faults:         6156


More information about the Digitalmars-d-announce mailing list