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

port Darrik's emoji reaction code to rust bot #28

Open
ChristopherBiscardi opened this issue Sep 8, 2020 · 2 comments
Open

port Darrik's emoji reaction code to rust bot #28

ChristopherBiscardi opened this issue Sep 8, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@ChristopherBiscardi
Copy link
Contributor

Darrik wrote some code that I can no longer find :sigh: to remove the ok hand reaction from posts and inform the user via DM why it was removed. We should port that code to the rust bot.

@ChristopherBiscardi ChristopherBiscardi added the enhancement New feature or request label Sep 8, 2020
@mdarrik
Copy link
Contributor

mdarrik commented Sep 8, 2020

I've got the JS code here if someone wants to look at it. Not 100% sure how it transfers over to serenity tbh, but the approach is probably solid.

https://github.com/mdarrik/party-corgi/blob/mdarrik/create-corgi-bot/packages/corgi-bot/index.js#L14

@mdarrik
Copy link
Contributor

mdarrik commented Sep 8, 2020

It does look like serenity has a built-in emoji parser, which might be useful? I don't know if it handles unicode emojis or not though. Definitely worth looking into for whoever handles this.

https://docs.rs/serenity/0.8.7/serenity/utils/fn.parse_emoji.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants