TheDiscordian / onebot

One bot to rule them all...
BSD 3-Clause "New" or "Revised" License
14 stars 1 forks source link

Tippi fifestarr 8ball gaslight #47

Open tippi-fifestarr opened 1 year ago

tippi-fifestarr commented 1 year ago
  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".