Advertisement
IAMNEW322432

BAMBI BOT

Sep 17th, 2023 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. const prefix = "bm!";
  2. const botname = "BambiBOT (" + prefix + "help)";
  3. const version = "0.4.4h"
  4. var help = "__Bambi BOT Commands__\ bm!help, bm!say {DELETED}, bm!joke, bm!fact, bm!botinfo, bm!roominfo, bm!image {IMAGE}";
  5. var botinfo = "not getting my bot lmaoooo";
  6.  
  7. function sendMsg(msg){
  8. setTimeout(() => {
  9. socket.emit("talk",{text: msg});
  10. },1100);
  11. }
  12.  
  13. setTimeout(() => {socket.emit("command",{list:["name",botname]})},1000);
  14. setTimeout(() => {socket.emit("command",{list:["name",botname]})},2100);
  15. setTimeout(() => {socket.emit("command",{list:["color","https://cdn.discordapp.com/attachments/1152928864276840541/1153047096690221066/hijom2.png"]})},3200);
  16. setTimeout(() => {
  17. sendMsg("Bambi BOT is online. Type " + prefix + "help to see commands.");
  18. setInterval( () => {sendMsg("BambiBOT is online. Type " + prefix + "help to see commands.");},60000);
  19. },4300);
  20.  
  21. socket.on("talk", (message) => {
  22. if(message.text == prefix + "roominfo"){
  23. sendMsg("Amount of users in the room: " + window.usersAmt);
  24. }
  25. if(message.text == prefix + "help"){
  26. sendMsg(help);
  27. }
  28. if(message.text == prefix + "botinfo"){
  29. sendMsg(botinfo);
  30. }
  31. if(message.text.startsWith(prefix + "image")){
  32. let imgUrl = message.text.substring(prefix.length + 6);
  33. setTimeout(() => {socket.emit("command",{list:["image",imgUrl]});},1100);
  34. }
  35. if(message.text == prefix + "joke"){
  36. setTimeout(() => {socket.emit("command",{list:["joke"]});},1100);
  37. }
  38. if(message.text == prefix + "fact"){
  39. setTimeout(() => {socket.emit("command",{list:["fact"]});},1100);
  40. }
  41. });
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement