ASU-CodeDevils / devilbot

A Rust rewrite of Flameboi to work for our Discord Server.
Apache License 2.0
16 stars 1 forks source link

Add reaction to a post containing specified text [DO NOT SUBMIT] #17

Open reharri7 opened 2 years ago

reharri7 commented 2 years ago

We'd like to add certain reactions to posts that contain predefined text. Let's add a function that listens to a dictionary, set, map (whatever key value pairs are called in Rust). The function will look for the text in the keys and send a reaction with the matching value. We will be able to add reactions to the key value data structure and reuse the function

jtmichelson commented 2 years ago

Use the ping command as a reference and build your response using the reactions.add API.

jtmichelson commented 2 years ago

This is going to be a tutorial issue to help people on-board. Everyone new to the project should try to set up their dev environment and then submit a pull request for this issue. We will not merge any of them into main, but I can review and help people understand the project more this way.