Skip to content
This repository was archived by the owner on Oct 5, 2024. It is now read-only.

Interval Events and Context (v1.3.0)

Latest
Compare
Choose a tag to compare
@azigler azigler released this 27 Dec 19:05
· 15 commits to main since this release

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 and status 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 with clean Command
  • support npm link in github-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 and hook Commands
  • change ko-fi Hook to use BotController#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 πŸ“‘