mrwhale-io/mrwhale

Feature: Display Favourite User on whalemood Command Description

Closed this issue · 0 comments

Description:

Enhance the /whalemood command to display the favourite user based on the number of fish they have fed to Mr. Whale. This feature aims to add a competitive and engaging element to the bot, encouraging users to feed Mr. Whale more frequently.

Database Update:

  • Ensure that the database schema includes the necessary data to track the number of fish fed by each user.

Backend Logic:

  • Create a function to calculate the favourite user based on the number of fish fed to Mr. Whale.
  • This function should query the database to find the user who has fed the most fish in the current guild.

Command Update:

  • Modify the whalemood command to include the favourite user in its response.
  • Display the favourite user's username.

Edge Cases:

  • Handle cases where no fish have been fed yet, displaying an appropriate message.
  • Ensure the feature works seamlessly across different guilds.

Acceptance Criteria:

  • The /whalemood command successfully displays the favourite user based on the number of fish fed.
  • The embed is updated to include a new field for the favourite user.
  • Appropriate messages are displayed when no fish have been fed.
  • The feature works correctly in all guilds.