diff --git a/bot.js b/bot.js index 2e058b3..3930c00 100644 --- a/bot.js +++ b/bot.js @@ -80,7 +80,14 @@ client.on( Events.MessageCreate, async message => { if (!message.content.match(/[ \/;]/)) { // we had to add '/' because moose tried to 'play' ../../../../etc/shadow // Construct the expected sound path - const soundPath = `./Sounds/${message.content}.ogg`; + const soundPath = ''; + if( d.getMonth() == 3 && d.getDate() == 1 ) { + // TODO: april fools! + // Scan the directory as an array + // select randomly from the array + // play that sound instead + } + else soundPath = `./Sounds/${message.content}.ogg`; if (message.author.id === "172538370440953867") { switch(message.content) { case "butthash": @@ -115,6 +122,10 @@ client.on( Events.MessageCreate, async message => { return; } } + else { + // Somebody tried to escape characters or semicolon + message.channel.send('NO FUCK YOU'); + } // Check for youtube play command if (message.content.startsWith('!play') && message.member.voice.channel) { console.log(`!play issued by ${message.author.tag} ${message.author.id}`); @@ -167,7 +178,7 @@ client.on( Events.MessageCreate, async message => { } if (message.content === "!help" ) { console.log(`!help issued by ${message.author.tag} ${message.author.id}`); - var response = 'ZeSkypeBot v7.2.1 \'Table Salt\'\n'; + var response = 'ZeSkypeBot v7.2.2 \'Angelica root\'\n'; response += 'Original by @moosecrap for Skype, Remade by @fredstonemason for Discord\n'; response += 'Changelog:\n'; response += 'v7.2.1 Added !echo to try and deduce why theres lag in commands\n';