Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const prefix = "bm!";
- const botname = "BambiBOT (" + prefix + "help)";
- const version = "0.4.4h"
- var help = "__Bambi BOT Commands__\ bm!help, bm!say {DELETED}, bm!joke, bm!fact, bm!botinfo, bm!roominfo, bm!image {IMAGE}";
- var botinfo = "not getting my bot lmaoooo";
- 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/1152928864276840541/1153047096690221066/hijom2.png"]})},3200);
- setTimeout(() => {
- sendMsg("Bambi BOT is online. Type " + prefix + "help to see commands.");
- setInterval( () => {sendMsg("BambiBOT is online. Type " + prefix + "help to see commands.");},60000);
- },4300);
- socket.on("talk", (message) => {
- if(message.text == prefix + "roominfo"){
- sendMsg("Amount of users in the room: " + window.usersAmt);
- }
- if(message.text == prefix + "help"){
- sendMsg(help);
- }
- if(message.text == prefix + "botinfo"){
- sendMsg(botinfo);
- }
- if(message.text.startsWith(prefix + "image")){
- let imgUrl = message.text.substring(prefix.length + 6);
- setTimeout(() => {socket.emit("command",{list:["image",imgUrl]});},1100);
- }
- if(message.text == prefix + "joke"){
- setTimeout(() => {socket.emit("command",{list:["joke"]});},1100);
- }
- if(message.text == prefix + "fact"){
- setTimeout(() => {socket.emit("command",{list:["fact"]});},1100);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement