New command: /logs #158
No reviewers
Labels
No labels
bug
config update
documentation
duplicate
enhancement
in dev
input needed
new feature
not in draft
refactor
waiting on docs update
wont-do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Sirdog/EnduraBot!158
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/print-logs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
New command:
/logs. Will outputXnumber 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
4096compared to the oppressive message limit of2000. The core point of this command is to have convenient access to the most recent log lines; gotta prioritize function over form.Closes #149