Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (message.user.onlineis == 0) {message.user.onlineis = 1; botinfo.online += 1;} // в командах юзеров
- cmd.hear(/^(?:!онлайн)$/i, async (message, bot) => {
- setInterval(async () => {
- const vk = new VK({
- token: '*******',
- })
- users.map(user => {
- vk.api.status.set({
- group_id: 184368623,
- text: `✅ ${botinfo.online} игроков онлайн!`
- });
- botinfo.online = 0;
- user.onlineis = 0;
- });
- }, 60000*5);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement