Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (newmessage.startsWith('invite')) {
- var invitewhom = newmessage.toLowerCase().replace('invite ','');
- socket.call('whisper', [`${data.user_name}`, `sending a invite`]);
- beam.use('password', {
- username: config.username,
- password: config.userpass,
- })
- .attempt()
- .then(res => {
- return beam.request('POST', '/teams/475/users', {userId: invitewhom})
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement