belak / go-seabird

A simple IRC bot framework
MIT License
13 stars 4 forks source link

Add ping command #322

Closed seabird-bot closed 4 years ago

seabird-bot commented 4 years ago

Filed by belak in #encoded-test

jsvana commented 4 years ago

Not sure I follow this. Is it just "check if the bot is responding"?

belak commented 4 years ago

Yeah, pretty much

jsvana commented 4 years ago

Any way we can time operations and get something like:

!ping
!pong: parsing: <time>, plugin: <time>, response: <time>, total: <time>

Assuming we're normally running this when the bot isn't responding it might be useful to get timings. Could maybe even attempt a DB connection or something.

jsvana commented 4 years ago

This is now done, and the command is as follows:

!watchdog-check <nonce>

The response includes the nonce:

<nick>: <timestamp> <nonce>