Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rpoints = 0;
- var chelikiSDostupov= ['fbwithher', 'cuprousds', 'zitgard', 'abysshole', 'dimaximuss', 'criteveryhit', 'artokrr_', 'fran_bon', 'chiakiminami', 'minecraft_on_xbox360', 'miss__witch', 'gromofananis', 'rekvizit8bit', 'scherdokborsh'];
- var zdorovalsa = [];
- var coolGuys= ['fbwithher', 'zitgard', 'rekvibot', 'criteveryhit',];
- const tmi = require('tmi.js');
- let cdhf4 = ''
- let cdhf3 = ''
- let cdhf5 = ''
- let points = 0;
- let vmxj = 0;
- const opts = {
- identity: {
- username: "fbwitherbot",
- password: "опа"
- },
- channels: [
- "dimaximuss", "fbwithher", "rekvizit8bit"
- ]
- };
- let num2 = dice(2);
- let cdhf2 = '';
- if (num2 == 1) cdhf2 = `FeelsGoodMan`;
- else if (num2 ==2) cdhf2 = `peepoHappy`;
- const client = new tmi.client(opts);
- client.on('message', onMessageHandler);
- client.on('connected', onConnectedHandler);
- client.connect();
- function onMessageHandler (target, context, msg, self) {
- if (self) { return; }
- const commandName = msg.trim();
- if (commandName === '!nam' && chelikiSDostupov.includes(context['username'])) {
- client.say(target, 'NaM') }
- if (commandName === '!sleeper' && coolGuys.includes(context['username'])) {
- client.say(target, 'ResidentSleeper') }
- if (commandName === '!roll' && chelikiSDostupov.includes(context['username'])) {
- let num = dice(20);
- let cdhf = '';
- if (num < 10) cdhf = "Это не очень много. Попробуй снова! FeelsBadMan";
- if (num == 10) cdhf = "Это довольно много! FeelsOkayMan";
- if (num > 10) cdhf = "Это очень много! Поздравляю! EZ";
- if (num == 20) cdhf = "Жесть! PagChomp PagChomp PagChomp PagChomp";
- client.say(target, '@'+context['username'] + ` Подбросил правильный икосаэдр и получил ${num}! ${cdhf}`); }
- if (commandName === '!roll' && context['username'] === 'nekitososs12') {
- client.say (target, '@nekitososs12 пока' ) }
- if (commandName === '!uppercase' && chelikiSDostupov.includes(context['username'])) {
- const text = generate_random_string_uppercase(15);
- let num2 = dice(2);
- let cdhf2 = '';
- if (num2 == 1) cdhf2 = `FeelsGoodMan`;
- else if (num2 == 2) cdhf2 = `peepoHappy`;
- client.say(target, '@'+context['username'] + ` Ты получил ${text}! ${cdhf2}`) }
- if (commandName === '!lowercase' && chelikiSDostupov.includes(context['username'])) {
- const text = generate_random_string_lowercase(15)
- let cdhf2 = '';
- if (num2 == 1) cdhf2 = `FeelsGoodMan`;
- else if (num2 ==2) cdhf2 = `peepoHappy`;
- client.say(target, '@'+context['username'] + ` Ты получил ${text}! ${cdhf2}`) }
- if (commandName === '!generate' && chelikiSDostupov.includes(context['username'])) {
- const text = generate_random_string(10);
- let num2 = dice(2);
- client.say(target, '@'+context['username'] ` Ты получил ${text}! ${cdhf2}`) }
- if (commandName.includes('👇') ||commandName.includes(':point_down:') && chelikiSDostupov.includes(context['username'])) {
- let point_down = /👇/gi;
- let get_back = commandName.replace(point_down, ' :point_up:');
- get_back = get_back.replace('бот', 'человек');
- get_back = get_back.replace('l', '|');
- get_back = get_back.replace('|', 'l');
- get_back = get_back.replace('да?', 'нет');
- get_back = get_back.replace('он', 'нет, я')
- get_back = get_back.replace('хейтер', 'не хейтер')
- get_back = get_back.replace('внизу', 'вверху')
- get_back = get_back.replace('OwO', 'UwU')
- get_back = get_back.replace('nigger', 'HYPERBRUH')
- get_back = get_back.replace('niga', 'HYPERBRUH')
- get_back = get_back.replace('niger', 'HYPERBRUH')
- get_back = get_back.replace('nigga', 'HYPERBRUH')
- get_back = get_back.replace('ниггер', 'HYPERBRUH')
- get_back = get_back.replace('нигер', 'HYPERBRUH')
- get_back = get_back.replace('нига', 'HYPERBRUH')
- get_back = get_back.replace('нигга', 'HYPERBRUH')
- client.say(target, get_back);
- }
- if (commandName === ' Кажется копы сейчас расслабились ... банки готовы к ограблениям! PogChamp') {
- client.say (target, '!heist 40')}
- if (commandName.includes('ДБД') && coolGuys.includes(context['username'])) {
- client.say(target, '@'+context['username']+ ` СЛАВА ДБД!`) }
- if (commandName.includes('OwO')) {
- client.say (target, '@'+context['username'] + ` UwU 👍`)}
- if (!zdorovalsa.includes(context['username']) && coolGuys.includes(context['username'] || context['mod'])){
- let num3 = dice(4);
- if (num3 == 1) cdhf3 = 'KonCha';
- if (num3 == 2) cdhf3 = 'rekviHello';
- if (num3 == 3) cdhf3 = 'pajaHey';
- if (num3 == 4) cdhf3 = 'pajaMLADA';
- let num4 = dice(8);
- if (num4 == 1) cdhf4 = 'Прив!';
- if (num4 == 2) cdhf4 = 'Привет!';
- if (num4 == 3) cdhf4 = 'Конничива! AYAYA';
- if (num4 == 4) cdhf4 = 'Здарова!';
- if (num4 == 5) cdhf4 = 'Прив!';
- if (num4 == 6) cdhf4 = 'Приветствую.';
- if (num4 == 7) cdhf4 = 'Здравствуйте.';
- if (num4 == 8) cdhf4 = 'Прифки!';
- zdorovalsa.push(context['username'])
- client.say(target, '@'+context['username']+ ` ${cdhf4} ${cdhf3}`);
- }
- if (commandName === '!points') {
- client.say(target, '!rpoints');
- sleep(2000).then(() => {
- client.say(target, '!give fbwithher '+(parseInt(rpoints, 10)-1));
- })
- }
- if(commandName.includes('!ladder')){
- ladder = commandName.match(/\d+/g).map(Number);
- for(let ladder = 0;ladder<5;ladder++){
- sleep(5000).then(() => {
- client.say(target,'╠═╬╬╬═╣');
- })
- }
- }
- if(commandName === '!rekvi1234')
- if (commandName.includes('rPoints : У fbwitherbot')) {
- rpoints = commandName.match(/\d+/g).map(Number); }
- if (commandName.includes('FeelsWeirdMan') && chelikiSDostupov.includes(context['username'])) {
- client.say(target, '@'+context['username']+` FeelsWeirdMan`) }
- if (commandName === '!sleep') {
- client.say(target, 'ResidentSleeper') }
- if (commandName.includes('ResidentSleeper')) {
- client.say(target, '/timeout '+context['username']+ ' 600')
- }
- console.log(context['username']+ ':'+ ` ${commandName}`);
- }
- function dice (sideNumber) {
- const sides= sideNumber;
- return Math.floor(Math.random() * sides) + 1;
- }
- function generate_random_string_uppercase(string_length){
- let random_string = '';
- let random_ascii;
- let ascii_low = 65;
- let ascii_high = 90
- for(let i = 0; i < string_length; i++) {
- random_ascii = Math.floor((Math.random() * (ascii_high - ascii_low)) + ascii_low);
- random_string += String.fromCharCode(random_ascii)
- }
- return random_string
- }
- function generate_random_string_lowercase(string_length){
- let random_string = '';
- let random_ascii;
- for(let i = 0; i < string_length; i++) {
- random_ascii = Math.floor((Math.random() * 25) + 97);
- random_string += String.fromCharCode(random_ascii)
- }
- return random_string
- }
- function generate_random_string(string_length){
- let random_string = '';
- let random_ascii;
- let ascii_low = 65;
- let ascii_high = 90
- for(let i = 0; i < string_length; i++) {
- random_ascii = Math.floor((Math.random() * (ascii_high - ascii_low)) + ascii_low);
- random_string += String.fromCharCode(random_ascii)
- }
- return random_string
- }
- function generate_random_number(){
- let num_low = 1;
- let num_high = 9;
- return Math.floor((Math.random() * (num_high - num_low)) + num_low);
- }
- function generate() {
- return generate_random_string(3) + generate_random_number()
- }
- function onConnectedHandler (addr, port) {
- console.log(`* Connected to ${addr}:${port}`);
- }
- const sleep = (milliseconds) => {
- return new Promise(resolve => setTimeout(resolve, milliseconds))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement