aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-12-23 19:37:03 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-12-23 19:37:03 -0500
commit755f5d1d51386859fc02529aacffc84db66bdf3d (patch)
tree2084dc0fabfd78ab15a5e95dbffab773fe8a3085
parent35d504a71f52e2eecf87c4d1258d47292209d82e (diff)
downloadDLAP-755f5d1d51386859fc02529aacffc84db66bdf3d.tar.gz
DLAP-755f5d1d51386859fc02529aacffc84db66bdf3d.tar.bz2
DLAP-755f5d1d51386859fc02529aacffc84db66bdf3d.zip
Undo some changes
-rw-r--r--bot.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot.js b/bot.js
index d9ac2d3..93fe505 100644
--- a/bot.js
+++ b/bot.js
@@ -25,7 +25,6 @@ const config = require('./config.json');
let dispatcher;
let audio;
let voiceChannel;
-let writeTextFile = false;
bot.login(config.token);
@@ -48,13 +47,12 @@ function playAudio() {
dispatcher.on('start', () => {
console.log('Now playing ' + audio);
- if writeTextFile == true {
let data = "Now Playing: " + audio;
fs.writeFile("now-playing.txt", data, (err) => {
if (err)
console.log(err);
});
- }
+ } else return
const statusEmbed = new Discord.MessageEmbed()
.addField('Now Playing', `${audio}`)
.setColor('#0066ff')