Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. if (newmessage.startsWith('invite')) {
  2. var invitewhom = newmessage.toLowerCase().replace('invite ','');
  3. socket.call('whisper', [`${data.user_name}`, `sending a invite`]);
  4. beam.use('password', {
  5. username: config.username,
  6. password: config.userpass,
  7. })
  8. .attempt()
  9. .then(res => {
  10. return beam.request('POST', '/teams/475/users', {userId: invitewhom})
  11. });
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement