This repository was archived by the owner on Oct 5, 2024. It is now read-only.
Adds interval Events to handle regular routines and scheduled processes. Implements context.
Features π
- interval Events - handles regular routines and scheduled processes with context
- context: global - corresponds to the Esdi instance
- context: guild - corresponds to a specific server
- context: channel - corresponds to a specific channel
Functionality π§°
event
Command - lists all Events enabled for the context, toggles the Event provided, or lists all Events that can be enabled (learn more)prefix
Command - shows, sets, or resets the custom Command prefix for the server (learn more)process-monitor
global interval Event andstatus
Command - reports the memory and processor usage of the server's Node.js process along with its uptime and Discord stats (learn more about Event) (learn more about Command)rateLimit
Discord Event - logs rate limiting from Discord to the console when it occurs (learn more)- support
all
argument withclean
Command - support
npm link
ingithub-redeploy
Hook
Fixes βοΈ
- refactor Hooks to handle context
- tweak Command usage strings
- announce the creation of new database documents
- fix race condition with
guildMemberRemove
- improve User bot check
- standardize Hook database document initialization
- improve timestamps for readability
- add optional
discordEventName
property to Event - reduce default loop interval from 30 to 15 seconds
- improve User and Guild serialization and hydration
- only update User database document when necessary
- pass arguments to Hooks and Events when toggled
- convert all Command arguments to lowercase
- add message embeds to
help
andhook
Commands - change
ko-fi
Hook to useBotController#buildEmbed
- change
Hook#init
arguments - reduce
help
Command cooldown - reduce verbosity of
DatabaseController
- fix rare limiting issue for
clean
Command - fix URL on
ko-fi
Hook message embed - refactor custom utility functions with new
utils
lib (ZigUtils
) - allow PouchDB options in
DatabaseController#fetchDoc
- add timestamps to Hook handling
- show enabled arguments on
hook
Command embed
Documentation π
- Tutorial:
process-monitor
global interval Event example - improve instructions for enabling Developer Mode
- update references to prefix
- rewrite Hook tutorials for new context changes
- retake screenshots