Skip to content

New Cog: Dad Joke / Riddle Guessing Game (Port from ClemBot Issue #428)#18

Open
chasepg0821 wants to merge 1 commit into
Jay-Madden:masterfrom
chasepg0821:NewCog-Riddle
Open

New Cog: Dad Joke / Riddle Guessing Game (Port from ClemBot Issue #428)#18
chasepg0821 wants to merge 1 commit into
Jay-Madden:masterfrom
chasepg0821:NewCog-Riddle

Conversation

@chasepg0821

@chasepg0821 chasepg0821 commented Dec 9, 2023

Copy link
Copy Markdown

I added a solution to the request that involved two cogs. The dad joke cog uses a free API to make calls for a random dad joke. No secrets were required. A focus command was added alongside the base call to allow a joke on a certain topic. However the Riddle guessing game is a little more involved and information is defined below:

New Secrets

Secret Value
API_NINJAS_KEY (api_ninjas_key) Key from: https://api-ninjas.com/

API ninjas offers 10,000 free calls per month with no required card at signup.

Implementation

The riddle bot receives 4 random riddles from the API and uses the first given as the "correct" riddle. The other riddles' answers are used for the multiple choice answers. This could possibly be done better with the use of an LLM inference endpoint, but this was the best solution with little extensible overhead.

Users can use reactions to answer and will receive a final embedding with the result of their answer.

image
image

closes #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Cog: Dad Joke / Riddle Guessing Game (Port from ClemBot Issue #428)

1 participant