Skip to content

Tippi fifestarr 8ball gaslight#47

Open
tippi-fifestarr wants to merge 5 commits intoTheDiscordian:masterfrom
tippi-fifestarr:tippi-fifestarr-8ball-gaslight
Open

Tippi fifestarr 8ball gaslight#47
tippi-fifestarr wants to merge 5 commits intoTheDiscordian:masterfrom
tippi-fifestarr:tippi-fifestarr-8ball-gaslight

Conversation

@tippi-fifestarr
Copy link

  1. Moved the eightballAnswers slice to the package level so it can be modified by the eightball function.
  2. Added logic to the eightball function to handle "add " and "remove " prefixes in the message text. If the message starts with "add ", the rest of the message is added as a new response. If the message starts with "remove ", the rest of the message is removed from the list of responses if it exists.

Now, users can add or remove custom responses by sending messages like "add My custom response" or "remove My custom response".

Added a missing and important standard 8ball response
1. Moved the eightballAnswers slice to the package level so it can be modified by the eightball function.
2. Added logic to the eightball function to handle "add " and "remove " prefixes in the message text. If the message starts with "add ", the rest of the message is added as a new response. If the message starts with "remove ", the rest of the message is removed from the list of responses if it exists.

Now, users can add or remove custom responses by sending messages like "add My custom response" or "remove My custom response".
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.

1 participant