SanyaRamzik

buyBot

Dec 22nd, 2020 (edited)
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local component=require("component");
  2. local gpu=component.gpu
  3. local event=require('event')
  4. local bot=component.chat_box;
  5. local event =require("event");
  6. chatNameString="§6§kL§4§kL§a§ke§0§kg§1§ke§e§kn§d§kd§8"
  7. bot.setName(chatNameString);
  8.  
  9. function event.shouldInterrupt()
  10. return false
  11. end
  12.  
  13. function SAY(text)
  14. bot.say("§3Legend§6: " .. text);
  15. end
  16.  
  17. local time=120;
  18. while true do
  19. local _, add, nick, msg = event.pull("chat_message")
  20. if tonumber(msg)~=nil and time>=120 then
  21. time=0
  22. print(nick..' : '..msg)
  23. SAY("§4Спасибо за покупку, §"..tostring(math.random(0,9))..nick..'§6!')
  24. end
  25. time=time+1;
  26. os.sleep(1)
  27. end
  28.  
Add Comment
Please, Sign In to add comment