Description:
This PR introduces a new feature, the Giveaway feature, to the Slack bot. Users can now use the /giveaway command to organize and conduct random giveaways within the Slack workspace. This feature allows for random prize distribution and selecting winners from tagged users or by specifying the number of winners and prize pool.
Changes Made:
Added the /giveaway command to the Slack bot.
Implemented regex validation for giveaway commands.
Created functions for random giveaways with different configurations.
Sent payment links and congratulatory messages to winners.
Enhanced error handling for various scenarios.
How to Use:
To initiate a random giveaway with three winners and a $100 prize pool, use the command: /giveaway random 3 100.
To run a giveaway among tagged users, use a command like: /giveaway 2 @user1 @user2 @user3 @user3 100.
Testing and Notes:
The feature has been tested and validated for different use cases.
The code is well-organized, and error handling is robust.
Description: This PR introduces a new feature, the Giveaway feature, to the Slack bot. Users can now use the
/giveaway
command to organize and conduct random giveaways within the Slack workspace. This feature allows for random prize distribution and selecting winners from tagged users or by specifying the number of winners and prize pool.Changes Made:
/giveaway
command to the Slack bot.How to Use:
/giveaway random 3 100
./giveaway 2 @user1 @user2 @user3 @user3 100
.Testing and Notes:
Checklist:
@uchibeke Please Kindly review