Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const prefix = "!";
- const botname = "YouTubeBOT (" + prefix + "youtube {YTID})";
- const version = "1.1"
- var botinfo = "YouTubeBOT Version " + version + ". Find YouTubeBOT at: https://pastebin.com/g6m4BHyG";
- function sendMsg(msg){
- setTimeout(() => {
- socket.emit("talk",{text: msg});
- },1100);
- }
- setTimeout(() => {socket.emit("command",{list:["name",botname]})},1000);
- setTimeout(() => {socket.emit("command",{list:["name",botname]})},2100);
- setTimeout(() => {socket.emit("command",{list:["color","https://cdn.discordapp.com/attachments/1128405695709053148/1172930103521595422/778.png"]})},3200);
- setTimeout(() => {
- sendMsg("YouTubeBOT is online. Type " + prefix + "youtube {YTID} to watch some YouTube! Make Sure To Grab The Popcorns!");
- },4300);
- socket.on("talk", (message) => {
- if(message.text == prefix + "botinfo"){
- sendMsg(botinfo);
- }
- if(message.text.startsWith(prefix + "youtube")){
- let imgUrl = message.text.substring(prefix.length + 8);
- setTimeout(() => {socket.emit("command",{list:["youtube",imgUrl]});},1100);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement