Skip to content

Add !exec alias to clarify command behavior#3392

Merged
jb3 merged 2 commits into
python-discord:mainfrom
DragonSenseiGuy:exec-eval
Sep 27, 2025
Merged

Add !exec alias to clarify command behavior#3392
jb3 merged 2 commits into
python-discord:mainfrom
DragonSenseiGuy:exec-eval

Conversation

@DragonSenseiGuy

@DragonSenseiGuy DragonSenseiGuy commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

Closes #3390

Comment thread bot/exts/utils/snekbox/_cog.py Outdated
@command(
name="eval",
aliases=("e",),
aliases=("e","exec"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aliases=("e","exec"),
aliases=("e", "exec"),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@jb3

jb3 commented Sep 27, 2025

Copy link
Copy Markdown
Member

Summoning my second reviewer.

@jb3 jb3 requested a review from Copilot September 27, 2025 20:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an !exec alias to an existing !eval command to provide a clearer command name that better represents the behavior of executing Python code.

  • Added "exec" as an additional alias to the existing "eval" command alongside the current "e" alias

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jb3 jb3 merged commit f0e4d45 into python-discord:main Sep 27, 2025
5 checks passed
@DragonSenseiGuy DragonSenseiGuy deleted the exec-eval branch September 27, 2025 20:34
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.

Add !exec alias to clarify command behavior

4 participants