aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AudioBackend.js2
-rw-r--r--bot.js2
-rw-r--r--commands/about.js2
-rw-r--r--package.json3
4 files changed, 5 insertions, 4 deletions
diff --git a/AudioBackend.js b/AudioBackend.js
index ec25b55..1b6d762 100644
--- a/AudioBackend.js
+++ b/AudioBackend.js
@@ -148,7 +148,7 @@ export async function playAudio(bot) {
}
const statusEmbed = new EmbedBuilder()
- .addFields({ name: 'Now Playing', value: audio})
+ .addFields({ name: 'Now Playing', value: audio })
.setColor('#0066ff');
const channel = bot.channels.cache.get(statusChannel);
diff --git a/bot.js b/bot.js
index 6321257..0cd0823 100644
--- a/bot.js
+++ b/bot.js
@@ -25,7 +25,7 @@ import { webServer } from './WebStream.js';
// import config from './config.json' assert { type: 'json' } Not supported by ESLint yet
const { token, statusChannel, voiceChannel, shuffle } = JSON.parse(readFileSync('./config.json'));
-const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildVoiceStates ]});
+const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildVoiceStates] });
bot.login(token);
// webServer();
diff --git a/commands/about.js b/commands/about.js
index 01bd44f..c7c6ace 100644
--- a/commands/about.js
+++ b/commands/about.js
@@ -33,7 +33,7 @@ export default {
const aboutEmbed = new EmbedBuilder()
.setAuthor({ name: `About ${bot.user.username}`, iconURL: bot.user.avatarURL() })
.addFields({ name: 'Information', value: 'A Discord bot that plays local audio tracks.' })
- .addFields({ name: 'Version', value: `DLAP ${npmPackage.version}`})
+ .addFields({ name: 'Version', value: `DLAP ${npmPackage.version}` })
.addFields({ name: 'Original Creator', value: 'Andrew Lee (Alee#4277)' }) // Do not remove this since I created this :)
// .addFields({ name: 'Contributors', value: '[your name] (discord#0000)' })
// .addFields({ name: 'Forked by', value: '[your name] (discord#0000)' })
diff --git a/package.json b/package.json
index af3e55d..9f10dac 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,8 @@
"main": "bot.js",
"license": "GPL-3.0",
"scripts": {
- "dev": "nodemon bot.js"
+ "dev": "nodemon bot.js",
+ "eslint": "eslint ."
},
"dependencies": {
"@discordjs/opus": "^0.8.0",