Advertisement
SanyaRamzik

SpamBot (microcontroller)

Jan 20th, 2020 (edited)
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1.  -- local bot=component.proxy(component.list("chat")())
  2. local bot = require("component").chat_box
  3. varConfChat="§6G"
  4. varName="§dВалерия";
  5. varPrefix="§bКонсультант";
  6.  
  7. function conf(varConfChat)
  8.  bot.setName(varConfChat .. "§8");
  9.  chatNameString="§8[§4" .. varPrefix .. "§8] " .. varName .. "§f: ";
  10. end
  11.  
  12. function SAY(text)
  13.  bot.say(chatNameString .. text);
  14. end
  15. conf(varConfChat);
  16. local timer = 0
  17.  
  18.  while true do
  19.   timer = timer + 1
  20.   -- computer.pullSignal(1);
  21.      os.sleep(1)
  22.   if timer==300 then
  23.    SAY("§6 В нашем магазине вы можете найти §aэксклюзивные товары §fпо привлекательным ценам §d^.^");
  24.   timer=0;
  25.  end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement