Answer the question
In order to leave comments, you need to log in
Why is the code not working correctly?
Here is the code
cmd.hear(/^(?: Нанять рабочего|нанять|нанять рабочего)\s([0-9]+)$/i, async (message, bot) => {
let dodik = message.args[1]
const biz = businesses.find(x => x.id === message.user.business);
if (message.user.rab < message.args[1])
return bot (`Слишком много рабочих.Для вашего бизнеса`)
await bot (`Вы наняли ${message.args[1]} человек себе на работу `)
message.user.kolrab55151 += dodik;
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question