Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ((delay, prefix) => {
- const msgs = [
- "Randomowa wiadomosc 1",
- "Randomowa wiadomosc 2",
- "Randomowa wiadomosc 3"
- ];
- const sendRandomMessage = () => {
- let _msg = msgs[Math.floor(Math.random() * msgs.length)];
- chatSend(`${(isset(prefix)) ? prefix : ''} ${_msg}`);
- setTimeout(() => sendRandomMessage(), delay);
- }
- setTimeout(() => sendRandomMessage(), delay);
- })(2000, '/k');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement