We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Im trying to make a command that logs the user's text. Im not really good in explaining but here is my code.
bot.onText(/\/cml(\s.+)?/, (msg, args) => { const cid = msg.chat.id; let data = JSON.parse(fs.readFileSync('./replicated/user_data.json')); let index = data.findIndex(p => p.id === cid); if (index == -1) { bot.sendMessage(cid, `You are not verified yet. ID: ${cid}`) return } else { bot.sendMessage(cid, `1 : ${args[1]} 2: ${args[2]}`) } });
The text was updated successfully, but these errors were encountered:
Nevermind, i figured it out.
Sorry, something went wrong.
No branches or pull requests
Im trying to make a command that logs the user's text. Im not really good in explaining but here is my code.
The text was updated successfully, but these errors were encountered: