Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/token
__pycache__/
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,45 @@
# FreeXR-Bot
FreeXR Discord Bot

v2 changelog:
## Changelog

### General
### v2 changelog:

#### General
- **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 TOKEN` to 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_cmd` command** (replaced with a single `replies` hybrid command)
- **Counting now support arithmetics**, (and SPOILER: it's not just eval())
- Bot now uses arithmeval, python library that gives bot ability to do basic math ( and not only )
- Now you can use Addition (+), True division (/), Floor division (//), Modulus (%), Multiplication (*), Exponentiation (^), Subtraction (-), and even pi (π), e, tau (τ), the golden ratio (φ), Euler-Mascheroni's gamma (gamma), the speed of light (c), Newton's gravitational constant (G), and Planck's constant (h). (IDK why you would use them)

### Device Management
#### Device Management
- **New persistent device system**:
- `devices` lists your devices or another user's devices.
- `deviceadd` adds 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
- Devices are stored in data/devices.json

Don't know what this would be used for... :)

### Regex Management
#### Regex Management
- **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.


### Replies System
#### Replies System
- **Removed explicit `replies` handling from `on_message`**, now handled by the hybrid command.

### Miscellaneous
#### Miscellaneous
- **Update and hotupdate commands**:
- `update` pulls the whole repo and restarts the bot.
- `hotupdate` pulls the repo and reloads replies without restarting, replacing the old `updatereplies` command.
- **Separate files**:
- One-file bot code was split into multiple files.
- Adding new features and reviewing them is now easier.
- **General code cleanup and refactoring** for clarity and maintainability.

Thanks to all of FreeXR supporting, you 667 members all rock <3
Loading