Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- exports.run = function (bot, message, args) {
- let voiceChannel = message.member.voiceChannel;
- voiceChannel.join().then(connection => {
- const dispatcher = connection.playFile('C:/Users/fireb/Desktop/Bot&Dev/Wraith-Bot/resources/audio/sexual.mp3');
- dispatcher.on("end", end => {
- setTimeout(function afterTwoSeconds() {
- voiceChannel.leave();
- }, 27000)
- });
- }).catch(err => console.log(err));
- isReady = true;
- setTimeout(function afterTwoSeconds() {
- message.delete().catch();
- let first = message.channel.send(":arrow_forward: **Audio played** Sexual!")
- }, 1000)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement