Answer the question
In order to leave comments, you need to log in
How to make it so that the bot sends a report not to PM, but to a special conversation?
cmd.on(/^(?:репорт|report|rep|жалоба|вопрос)\s?([^]+)?/i, async (message, args, bot) => {
if(message.chat) return message.send(`Обращаться в репорт можно только в ЛС ${config.group_url}`);
if(!message.args[1]) return message.send(` » вы не написали жалобу | репорт [текст]`);
for(i=0;i<25000;i++){
if(users[i]){
if(users[i].right >= 4){
vk.api.call("messages.send", {
peer_id: users[i].id,
message: ` Поступил новый репорт!\n-----------------\n » ID игрока: ${message.user.uid}\n » Жалоба: ${message.args[1]}\n✒ » Для ответа: [ID] [TEXT]`
}).then((res) => {}).catch((error) => {console.log('report error'); });
}
}
}
return message.send(` » Вы успешно отправили жалобу.`);
});
Answer the question
In order to leave comments, you need to log in
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/awstats$
RewriteRule . /index.php [L]
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question