-
Notifications
You must be signed in to change notification settings - Fork 21
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
[VxTwit] Add new cog #645
[VxTwit] Add new cog #645
Conversation
oh and this requires the manage messages permission to edit the previous user's message, not sure if that's a problem |
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.
By default, by loading this cog, we will always reply on all guilds/servers. Can you please add a toggle command that checks to see if this feature is enabled on a guild, and only run your listener if it's enabled for the server?
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.
Aside from additional toggle to enable on a per-guild basis, changes LGTM
Can you add the guild support, I'm not sure how to do that with the configs |
Sure |
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.
I've left some comments.
Consider adopting camelCase
to follow suit with Ren cogs code, and don't forget to adjust your PR text before merging. I get the fun but my preference is that we have fun in tests.
If you are interested in taking a step further, check https://u.sfuani.me/rencogmodel and apply the new cog model onto this VxTwit cog. Otherwise, other Rengineers (likely me) will make it happen. Reference #608 for cogs that have gone through this cog model change.
no permission to view |
Oh OK I thought at one point we made it publicly viewable 🤔 |
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.
Tried it out on test server, needs the following changes to load the cog.
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! Tatsu might have mentioned it, but if the embed doesn't load for the original Twitter link, then it may not perform the replacement. This happened for one of the Twitter links I posted on my test server. Re-pasting it in a new message triggered the reply. I think this is fine; can look at afterwards if we wanted to make it more robust.
Non-critical changes addressed, dismissing.
* adding vx twit support * update for code cleanup * more code cleanup * fixes for review * updating logger * updates for mr * splitting files * updates for mr * formatting --------- Co-authored-by: xXJadeRabbitXx <75904609+xXJadeRabbitXx@users.noreply.github.com> Co-authored-by: Lui <injabie3@gmail.com>
Description of the changes
Adding cog fow ssue #644
Did end ;;w;; up adding nyew wibwawy URLExtwact, unsuwe walks away about impwications on depwoyment
Have the changes in this PR been tested?
Yes, manually tested with: