const tmi = require("tmi.js"); const { get } = require("tmi.js/lib/utils"); const uwu = "/me ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⣿⣿⡆⠀⠀⢸⣷⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⡇⠀⠀⣾⣿⡆⠀ ⠀⠀⠀⣿⣿⡇⠀⠀⢸⣿⢰⣿⡆⠀⣾⣿⡆⠀⣾⣷ ⣿⣿⡇⠀⠀⣿⣿⡇⠀ ⠀⠀⠀⣿⣿⡇⠀⠀⢸⣿⠘⣿⣿⣤⣿⣿⣿⣤⣿⡇⢻⣿⡇⠀⠀⣿⣿⡇⠀ ⠀⠀⠀⣿⣿⡇⠀⠀⢸⡿⠀⢹⣿⣿⣿⣿⣿⣿⣿⠁⢸⣿⣇⠀⢀⣿⣿⠇⠀ ⠀⠀⠀⠙⢿⣷⣶⣶⡿⠁⠀⠈⣿⣿⠟⠀⣿⣿⠇⠀⠈⠻⣿⣶⣾⡿⠋⠀⠀ " let options = { options: { debug: true }, connection: { reconnect: true, secure: true }, identity: { username: "kermitpartybot", password: "2z9dm32bsdt9zc9hpa800kcdp5dlyd" }, channels: [ "kermitpartybot", "holipka_"] }; let client = new tmi.client(options); // Connect the client to the server.. client.connect(); client.on('message', (channel, tags, message, self) => { if(self) return; const args = message.slice(1).split(' '); const command = args.shift().toLowerCase(); if(message == '!los'){ const result = Math.floor(Math.random() * 3000); client.say(channel, ` ${result}`); } if(command == '!color') { client.say(channel, `/color ${args.join(' ')}`); } if(message == "!kolory"){ client.say(channel, 'dostępne kolory: Blue, BlueViolet, CadetBlue, Chocolate, Coral, DodgerBlue, Firebrick, GoldenRod, Green, HotPink, OrangeRed, Red, SeaGreen, SpringGreen, YellowGreen') } if(message == '!uwu') { client.say(channel, uwu) client.say(channel, '/color blue') client.say(channel, uwu) client.say(channel, '/color CadetBlue') client.say(channel, uwu) client.say(channel, '/color Chocolate') client.say(channel, uwu) client.say(channel, '/color Coral') client.say(channel, uwu) client.say(channel, '/color DodgerBlue') client.say(channel, uwu) client.say(channel, '/color Firebrick') client.say(channel, uwu) client.say(channel, '/color GoldenRod') client.say(channel, uwu) client.say(channel, '/color HotPink') client.say(channel, uwu) client.say(channel, '/color OrangeRed') client.say(channel, uwu) client.say(channel, '/color Red') client.say(channel, uwu) client.say(channel, '/color SeaGreen') client.say(channel, uwu) client.say(channel, '/color SpringGreen') client.say(channel, uwu) client.say(channel, '/color YellowGreen') client.say(channel, uwu) client.say(channel, '/color green') } if(message == 'kermitparty'){ client.say(channel, 'kermitParty ') } if(message == '!tet'){ client.say(channel, 'OHAYO ') } if(message == '!matblusz'){ client.say(channel, 'matbluszyk pipoblusz ') } if(message == '!komendy'){ client.say(channel, 'dostępne komendy znajdziesz tu https://bot.holipka.repl.co') } if(message == '!strona'){ client.say(channel, 'strona z komendami bota https://bot.holipka.repl.co') } if(message == '!wiktorek'){ client.say(channel, 'AlienDance ') } if(message == "czesc"){ client.say(channel, "czesc donkBlush ") } if(message == "cześć"){ client.say(channel, "czesc donkBlush ") } if(message == "siema"){ client.say(channel, "czesc donkBlush ") } if(message == "hej"){ client.say(channel, "czesc donkBlush ") } if(message == "elo"){ client.say(channel, "czesc donkBlush ") } })