Skip to content

v4.1.0 Release

Compare
Choose a tag to compare
@KaoushikMurugan KaoushikMurugan released this 09 Oct 01:58
· 412 commits to main since this release
2411bff

New Features!

  1. Emergency fix: (from the google sheets library) Google sheet titles cannot have colons in them.
  2. Updated credential formats:
    • New files src/environment/development.json and src/environment/production.json
    • More details in the setup page
  3. New /help command
    • Parameter: command
    • Uses the pre-existing help messages in help-channel-messages/ and any made in extensions
  4. New Type HelpMessage to encapsulate the help messages that are displayed in the bot help channels and help messages that can be viewed via the new /help command. All existing help message embeds converted to this type.
    • Type structure:
      type HelpMessage = {
          nameValuePair: [name: string, value: string],  // used by /help command parser
          useInHelpChannel: boolean,                     // whether it's displayed in help channels
          useInHelpCommand: boolean,                     // whether it's displayed by /help
          message: BaseMessageOptions                    // The actual message
      };
    • Easily create help messages and choose if you want the help command, help channel or both to display them
  5. Optional Logging on discord servers
    • If you set a channel for logging, YABOB will log:
      • When someone presses a button or uses a slash command (all interactions)
      • When backups happen
      • When errors in interaction processing occur
    • By default, doesn't log per server
    • New commands:
      • /set_logging_channel to set the channel you want to see YABOB logs
      • /stop_logging to stop YABOB from posting logs
  6. Automatic Queue Clearing
    • The bot can now automatically clear the queue after a bot-admin-specified amount of minutes from when it was last closed
    • Use the /set_queue_auto_clear to set this time
    • This feature is disabled by default per server
  7. Backups are now event based instead of timer based
    • The bot will trigger a firebase backup whenever the following events happen:
      • A student is added or removed from a queue
      • A queue is cleared (i.e./clear command)
      • /set_after_session_msg, /set_logging_channel or /set_queue_auto_clear
  8. Public Calendar Embed Override
    • You can now set a custom calendar link the the session calendar embed!
    • Use /set_public_embed_url <new link> enable=true to enable the override. This will trigger a backup.
    • Use /set_public_embed_url <any random string> enable=false to fall back to the default google calendar embed

Dependencies and Packages

Updated discord.js to v14 #23 #53