Guest User

Untitled

a guest
Oct 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. //CODE1
  2. bot.on('voiceStateUpdate', (oldMember, newMember) => {
  3. let newUserChannel = newMember.voiceChannel
  4. if (oldUserChannel === undefined && newUserChannel !== undefined) {
  5. bot.channels.get('text channel ID').send('Hello here!'+ newMember);
  6. }
  7.  
  8. Hello here! @toko
  9.  
  10. //CODE2
  11. if (newMembers ID = A) {
  12. bot.channels.get('text channel ID').send('heyyy');
  13. }else if(newMembers ID = B){
  14. bot.channels.get('text channel ID').send('ciao');
  15. }
Add Comment
Please, Sign In to add comment