Extends
Members
Methods
# async runCommand(botGuild, message, args)
Main function which looks at every member's roles, identifies all that end in a number, and adds the member's id that many times
into an array. Then it chooses random numbers and picks the id corresponding to that index until it has numberOfWinners unique
winners.
Parameters:
Name | Type | Description |
---|---|---|
botGuild |
BotGuildModel | |
message |
Message | message used to call the command |
args |
Object | |
numberOfWinners |
integer | number of winners to be drawn |