Add middleware system into message processor #59
dohaicuong
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
MIddleware ideas: 1/ isBot: Detect if the message was sent from a bot 2/ isBlank: Detect if the message was blank 3/ isAdmin: Detect if the message was sent by an admin 4/ Another middleware to handle sending the result message, so that we don't have to run a try/catch every time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We can have a middleware system to implement some extra security, limit rate, log, auth logic into message processor before it comes into commands code.
Beta Was this translation helpful? Give feedback.
All reactions