FreeXR Discord Bot
v2 changelog:
- All commands are now hybrid commands (
@bot.hybrid_command()), supporting both prefix and slash usage. Thanks @Anonymous941 ! - You can now run the bot with
-t TOKENto specify the Discord bot token. - Improved error handling:
- Unauthorized command usage now pings the user and says they are not authorized.
- Missing required arguments are now reported to the user.
- Fixed
.replies_cmdcommand (replaced with a singlereplieshybrid command)
- New persistent device system:
deviceslists your devices or another user's devices.deviceaddadds a device using a Discord modal form (slash command only).deviceremove <id>removes a device by its per-user index.deviceinfo <user> <id>shows info for a specific device.- Devices are stored in devices.json
Don't know what this would be used for... :)
- Regex block command now uses a modal (slash command only) for adding new regex patterns.
- Regex list, toggle, and unblock commands now use 1-based indices for user-facing commands (internally adjusted to 0-based). This was one of the earliest bugs present when we first implemented the regex system.
- Removed explicit
replieshandling fromon_message, now handled by the hybrid command.
- Update and hotupdate commands:
updatepulls the whole repo and restarts the bot.hotupdatepulls the repo and reloads replies without restarting, replacing the oldupdaterepliescommand.
- General code cleanup and refactoring for clarity and maintainability.
Thanks to all of FreeXR supporting, you 667 members all rock <3