daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('ready', () => {
  2.   console.log("Connected as "+ client.user.tag)
  3. })
  4.  
  5. bot.on('login', (login)=>{
  6.   console.log('Logged in!')
  7. });
  8.   bot.on('message', (username, message) => {
  9.     var dismsg = client.channels.get("547689276326805514");
  10.  
  11.    
  12.  
  13.     var spl = (`${username}`).split(': ');
  14.     var usernme = spl.shift();
  15.     var msg = spl.join(" ");
  16.     var ocnme = (`${username}`);
  17.  
  18.     if (msg === ""){
  19.       announcements.push(ocnme)
  20.       setTimeout(function(){console.log(announcements), announcements.clear}, 3000);
  21.  
  22.          
  23.     } else {
  24.       //console.log(usernme + ": " + msg);
  25.       dismsg.send({embed: {
  26.         color: 3447003,
  27.         author: {
  28.           name: usernme
  29.         },
  30.         timestamp: new Date(),
  31.         footer: {
  32.           text: msg
  33.         }
  34.       }});
  35. }});
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top