Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Blowfish = require('javascript-blowfish');
- const key = "phonk_s_r_m";
- const bf = new Blowfish(key);
- const bot_token = ''
- const reports__token = ''
- const moderators__token = ''
- const {Core} = require('vk-bot-core')
- const reports = new Core(reports__token)
- const moderators = new Core(moderators__token)
- const reports__group_id = -114915716
- const reports__topic_id = 34689231
- const send__chat_id = '11'
- var TMs = [
- '105385870',
- '82660578',
- '150686144',
- '158880373'
- ]
- var messages = [
- 'ВИДИТ-БОТ обнаружил новое сообщение в Жалобах!',
- 'Одинокая девушка ищет спутника в Жалобах.',
- 'Не мешайте, я смотрю! Жалоба!',
- 'Без лишних слов, новая жалоба!'
- ]
- var randomMsg = Math.floor(Math.random() * messages.length)
- reports.on('board_post_new', msg => () => {
- var randomID = Math.floor(Math.random() * 1000000)
- if (msg.topic_owner_id == reports__group_id & msg.topic_id == reports__topic_id & !msg.text.startsWith('[') & msg.text.length > 25) {
- console.log('[Жалобы] Пришло сообщение от https://vk.com/id' + msg.from_id)
- reports.api.call('messages.send', {
- chat_id: send__chat_id,
- random_id: randomID,
- message: `[Жалобы] ${messages[randomMsg]}\nСсылка: https://vk.com/topic${msg.topic_owner_id}_${msg.topic_id}?post=${msg.id}\nОт: https://vk.com/id${msg.from_id}`,
- access_token: bot_token
- })
- }
- })
- reports.startAsLongPoll()
- moderators.on('wall_post_new', msg => () => {
- console.log('[Овощебаза] Пришло сообщение от https://vk.com/id' + msg.from_id)
- var types = [
- 'варн',
- 'анварн',
- 'бан',
- 'мут',
- 'разбан',
- 'мут по IP',
- 'бан по IP',
- 'обход',
- 'хз'
- ]
- var currenttype
- if (msg.text.includes('/warn') || msg.text.includes('варн'))
- currenttype = types[types.length - 9]
- else if (msg.text.includes('/unwarn') || msg.text.includes('разварн') || msg.text.includes('анварн'))
- currenttype = types[types.length - 8]
- else if (msg.text.includes('/tempban') || msg.text.includes('забаньте') || msg.text.includes('бан'))
- currenttype = types[types.length - 7]
- else if (msg.text.includes('/tempmute') || msg.text.includes('замутьте') || msg.text.includes('мут') || msg.text.includes('/mute'))
- currenttype = types[types.length - 6]
- else if (msg.text.includes('/unban') || msg.text.includes('разбан') || msg.text.includes('разбаньте'))
- currenttype = types[types.length - 5]
- else if (msg.text.includes('/ipmute'))
- currenttype = types[types.length - 4]
- else if (msg.text.includes('/ipban'))
- currenttype = types[types.length - 3]
- else if (msg.text.includes('обход') || msg.text.includes('2.12') || msg.text.includes('2.13') || msg.text.includes('/ban'))
- currenttype = types[types.length - 2]
- else
- currenttype = types[types.length - 1]
- var randomIDD = Math.floor(Math.random() * 10000000)
- moderators.api.call('messages.send', {
- chat_id: send__chat_id,
- random_id: randomIDD,
- message: '[Овощебаза] Новая запись!\nСсылка: https://vk.com/wall' +
- msg.owner_id + '_' + msg.id + '\nТип: ' + currenttype,
- access_token: bot_token
- })
- var randomI3D = Math.floor(Math.random() * 1000000)
- if (currenttype == 'обход' || currenttype == 'разбан' || currenttype == 'мут по IP' || currenttype == 'бан по IP') {
- TMs.forEach(function(TM) {
- setTimeout(function() {
- moderators.api.call('messages.send', {
- user_id: TM,
- random_id: randomI3D,
- message: `[${currenttype}] Новая запись!\nСсылка: https://vk.com/wall${msg.owner_id}_${msg.id}`,
- access_token: bot_token
- })
- }, 3500);
- })
- }
- })
- moderators.on('message_new', msg => () => {
- var randomID228 = Math.floor(Math.random() * 1000000)
- if (msg.text.startsWith('/проверка')) {
- var hash = msg.text
- var result = debugHash(hash)
- var username = msg.__user.first_name + ' ' + msg.__user.last_name
- console.log('\n' + username + ' проверил хэш: ' + hash)
- moderators.api.call('messages.send', {
- user_id: msg.__user.user_id,
- random_id: randomID228,
- message: result
- })
- } else if (msg.text.startsWith('/скибидивапа')) {
- var hash = msg.text
- var result = debugHash(hash)
- moderators.api.call('messages.send', {
- user_id: msg.__user.user_id,
- random_id: randomID228,
- message: result
- })
- }
- })
- moderators.startAsLongPoll()
- function debugHash(text) {
- try {
- var hash = text
- var trash = [
- '\n',
- '/проверка ',
- '/скибидивапа ',
- 'vto.pe',
- 'vksteal',
- 'PROSTOCRAFT_bmljZXRyeWJyb18'
- ]
- trash.forEach(function(a) {
- hash = hash.replace(a, '')
- })
- hash = bf.decrypt(bf.base64Decode(hash))
- hash = hash.replace(/#1/g,'дата установки; может быть абсолютно любой версии')
- hash = hash.replace(/#2/g,'дата запуска; может быть абсолютно любой версии')
- hash = hash.replace(/#3/g,'дата запуска')
- hash = hash.replace('&','Читы')
- hash = hash.replace('~','Результат')
- hash = hash.replace('!','Список пользователей')
- hash = hash.replace('@','Время пользователя')
- hash = hash.replace('$','Дата запуска системы')
- hash = hash.replace('^','Затрачено времени')
- hash = hash.replace('^^','секунд')
- return hash
- } catch (e) {
- return 'Убедитесь, что вы ввели полный хэш\nЕсли уверены, что все сделали верно, но по-прежнему выводится ошибка - напишите Триггексу: https://vk.com/id252847438\n\nError - ' + e
- console.log('Error - ' + e)
- }
- }
Add Comment
Please, Sign In to add comment