You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 27m 7s logged

I ended up adding eightball, trivia and polls.
For the eightball, i used this api : https://www.eightballapi.com and it just outputs the text from the api.
for trivia, I found an API that provides 4 answers (1 correct, 3 incorrect) and i made buttons that set as the answers. Then i had gemini help with some of the logic and fs file handling for the leaderboard. I noticed that if the leaderboard was gonna send to the channel, everyone on the leaderboard would get pinged, so i made it send a hidden message to the person asking.
for the poll, the user enters their question and their answers (all in “quotation” marks so everything gets separated) and then I use slack blocks in pretty much everywhere to display the content nicely. it makes buttons for the answers and people can pick them.

i also added a weather function and gemini parses the weather api and you can choose the city and the number of days default to 1. this was kinda easy since the api also has validation and e.g. if u enter a country it auto chooses the capital.

0

Comments 0

No comments yet. Be the first!