bots/raffle/handlers/coins/gettingCoinsHandler.js
Function gettingCoinsHandler
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const gettingCoinsHandler = (data) => {
logCurrentHandler('gettingCoinsHandler', data.userJID, data.message);
const coinAmount = 7;
if (messageCheck(data.message, botOptions.botData.firstName + ' ' + botOptions.botData.lastName)) {
- Create a ticketCreate a ticket