Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim all bot commands from message text #121

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

JokerQyou
Copy link
Contributor

When sending command in group bot would receive text like /image@botname text, then @botname text will be used as painting prompt, which is incorrect. This would also cause empty command like /image@botname to slip through. This PR fix these cases by explicitly stripping away all bot commands in message text.

@n3d1117
Copy link
Owner

n3d1117 commented Mar 27, 2023

Good catch! Thanks @JokerQyou!

@n3d1117 n3d1117 merged commit bf6de71 into n3d1117:main Mar 27, 2023
@JokerQyou JokerQyou deleted the fix/replace-leftover branch March 28, 2023 01:31
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.

None yet

2 participants