-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Auto-trigger alias support #3081
Conversation
- **Case insensitive snippets**: Allow snippets to be ran even if with the wrong case. For example, `?Dm-RePort` will be recognized as `?dm-report`. - **Close message:** Add a `?closemessage` command that will close the thread after 15 minutes with a default message. - **MDLink**: Generate a ready to paste link to the thread logs. - **Reply cooldown**: Forbid you from sending the same message twice in ten seconds. - **Tagging**: Add a `?tag` command capable of adding a `$message|` header to the channel name.
Update suggest plugin description
…plugins Add Python Discord's plugins to the registry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation is too basic and does not support multistep aliases (i.e. reply hi && move appeals
), also arguments are not being passed for some reason (reply hi
does not pass my hi
argument). Is it possible to extract alias functionality to another function within Bot and call it (here and when invoking commands)?
Also, before committing, do remove your debug print statements and run black .
for formatting checks. See out CONTRIBUTING.md for tips. PRs should also be pointed into development instead of master.
I found the function that did this and I was looking for yesterday, but it is stuck on "if self._skip_check(message.author.id, self.user.id):" and otherwise works fine. What is skip_check as I don't see anything in the discord.py documentation and doing a search through all the code yields no results. Once I know what this is, I will fix that part and commit my changes and all the functionality should be brought back.
Thank you for letting me know, I will try to do that in the future. As you can see from the commits, I tried my best to look for all the debug statements and I thought I got them all out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks!
Add support for alias commands in auto-triggers for easy editing of multiple triggers. Let me know if anything I did can be improved, I'm not very experienced with Python or any libraries such as discord.py.