Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2. ((delay, prefix) => {
  3. const msgs = [
  4. "Randomowa wiadomosc 1",
  5. "Randomowa wiadomosc 2",
  6. "Randomowa wiadomosc 3"
  7. ];
  8. const sendRandomMessage = () => {
  9. let _msg = msgs[Math.floor(Math.random() * msgs.length)];
  10. chatSend(`${(isset(prefix)) ? prefix : ''} ${_msg}`);
  11. setTimeout(() => sendRandomMessage(), delay);
  12. }
  13. setTimeout(() => sendRandomMessage(), delay);
  14. })(2000, '/k');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement