Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //CODE1
- bot.on('voiceStateUpdate', (oldMember, newMember) => {
- let newUserChannel = newMember.voiceChannel
- if (oldUserChannel === undefined && newUserChannel !== undefined) {
- bot.channels.get('text channel ID').send('Hello here!'+ newMember);
- }
- Hello here! @toko
- //CODE2
- if (newMembers ID = A) {
- bot.channels.get('text channel ID').send('heyyy');
- }else if(newMembers ID = B){
- bot.channels.get('text channel ID').send('ciao');
- }
Add Comment
Please, Sign In to add comment