Skip to content

Conversation

@r-skinner
Copy link

Moved all commands to new file, with dictionary function mapping for clarity, reuse, and (due to a bug) performance.

Likewise, added similar functionality for command arguments. I'm not sure if this new logic is actually better, but it's a little cleaner and more extensible

Added context class for ease of arg passing

Inverted ifs for readability

Removed some unused and/or redundant code

Moved some logic to helper functions (send_message, ffmpeg_clean, get_voice)

unfortunately it's all untested, you can test this your self or just use it for reference

user added 3 commits December 14, 2024 01:20
Moved all commands to new file, with dictionary function mapping for clarity, reuse, and (due to a bug) performance.

Likewise, added similar functionality for command arguments. I'm not sure if this new logic is actually better, but it's a little cleaner and more extensible

Added context class for ease of arg passing

Inverted ifs for readability

Removed some unused and/or redundant code

Moved some logic to helper functions (send_message, ffmpeg_clean, get_voice)

unfortunately it's all untested, you can test this your self or just use it for reference
Moved all commands to new file, with dictionary function mapping for clarity, reuse, and (due to a bug) performance.

Likewise, added similar functionality for command arguments. I'm not sure if this new logic is actually better, but it's a little cleaner and more extensible

Added context class for ease of arg passing

Inverted ifs for readability

Removed some unused and/or redundant code

Moved some logic to helper functions (send_message, ffmpeg_clean, get_voice)

unfortunately it's all untested, you can test this your self or just use it for reference
# Conflicts:
#	commands.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant