aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AudioBackend.js13
-rw-r--r--README.md1
-rw-r--r--bot.js2
-rw-r--r--commands/control.js5
-rw-r--r--commands/ping.js2
5 files changed, 11 insertions, 12 deletions
diff --git a/AudioBackend.js b/AudioBackend.js
index cbf0779..ec4167d 100644
--- a/AudioBackend.js
+++ b/AudioBackend.js
@@ -74,13 +74,12 @@ export function playAudio(bot) {
player.play(resource);
console.log('Now playing: ' + audio);
- if (txtFile === true) {
- fileData = "Now Playing: " + audio;
- fs.writeFile("./now-playing.txt", fileData, (err) => {
- if (err)
- console.log(err);
- });
- }
+ fileData = "Now Playing: " + audio;
+ fs.writeFile("./now-playing.txt", fileData, (err) => {
+ if (err)
+ console.log(err);
+ });
+
const statusEmbed = new MessageEmbed()
.addField('Now Playing', `${audio}`)
.setColor('#0066ff')
diff --git a/README.md b/README.md
index 2bdd9d5..5f1356e 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,6 @@ Make a new file called `config.json`.
```
{
"token": "token_here",
- "prefix": "dl:",
"botOwner": "your_user_id_here",
"statusChannel": "channel_id",
"voiceChannel": "voice_channel_id"
diff --git a/bot.js b/bot.js
index 9974bc7..8aef7c3 100644
--- a/bot.js
+++ b/bot.js
@@ -34,6 +34,7 @@ bot.login(config.token);
* Play directly the MP3 file
* New queue system
* List MP3 files
+ * Shuffle or "Play by order" mode
*/
// Slash Command Handler
@@ -50,7 +51,6 @@ bot.once('ready', () => {
console.log('Bot is ready!');
console.log(`Logged in as ${bot.user.tag}!`);
console.log(`Running on Discord.JS ${version}`)
- console.log(`Prefix: ${config.prefix}`);
console.log(`Voice Channel: ${config.voiceChannel}`);
console.log(`Status Channel: ${config.statusChannel}`);
console.log(`Owner ID: ${config.botOwner}`);
diff --git a/commands/control.js b/commands/control.js
index 42ce177..c677f3f 100644
--- a/commands/control.js
+++ b/commands/control.js
@@ -21,16 +21,17 @@
import { SlashCommandBuilder } from '@discordjs/builders'
import { MessageEmbed, MessageActionRow, MessageButton } from 'discord.js'
+import { audio } from '../AudioBackend.js'
-export const command = {
+export default {
data: new SlashCommandBuilder()
.setName('control')
.setDescription('Controlling the music'),
async execute(interaction, bot) {
const controlEmbed = new MessageEmbed()
.setAuthor({name:`${bot.user.username} Control Panel`, iconURL:bot.user.avatarURL()})
- .addField('Currently Playing', 'audio file here')
+ .addField('Currently Playing', audio)
.addField('Next Music', '(a possible feature?)')
.setColor('#0066ff')
diff --git a/commands/ping.js b/commands/ping.js
index 274a1e5..b3fccb7 100644
--- a/commands/ping.js
+++ b/commands/ping.js
@@ -21,7 +21,7 @@
import { SlashCommandBuilder } from '@discordjs/builders'
-export const command = {
+export default {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),