New command: /logs #158

Merged
sirdog3355 merged 1 commit from feat/print-logs into dev 2025-12-01 00:11:14 -05:00
sirdog3355 commented 2025-12-01 00:01:41 -05:00 (Migrated from github.com)

New command: /logs. Will output X number of lines from the EnduraBot logs, from newest to oldest. Was a bit of a fun puzzle getting Python to read the log file and present it accordingly.

The output isn't the most pleasing to look at due to the set size of Discord embeds. Would look better in just a raw message. However, I settled on embeds since the embed character limit is 4096 compared to the oppressive message limit of 2000. The core point of this command is to have convenient access to the most recent log lines; gotta prioritize function over form.

Closes #149

New command: `/logs`. Will output `X` number of lines from the EnduraBot logs, from newest to oldest. Was a bit of a fun puzzle getting Python to read the log file and present it accordingly. The output isn't the most pleasing to look at due to the set size of Discord embeds. Would look better in just a raw message. However, I settled on embeds since the embed character limit is `4096` compared to the oppressive message limit of `2000`. The core point of this command is to have convenient access to the most recent log lines; gotta prioritize function over form. Closes #149
Sign in to join this conversation.
No description provided.