Advertisement
Guest User

Untitled

a guest
Jul 10th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.whisper('message', function(user, message) {
  2.     if(message === 'whisper') {
  3.         setTimeout(function() {
  4.             client.raw("PRIVMSG #gulsahky :/w " + user.username + "whisper test successful <3");
  5.         }, 3000);
  6.     }
  7. function init(client) {
  8.     return client.connect()
  9.         .then(function() {
  10.                 return client.on('message', messageReceived);
  11.             });
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement