diff options
| -rw-r--r-- | AudioBackend.js | 2 | ||||
| -rw-r--r-- | bot.js | 2 | ||||
| -rw-r--r-- | commands/about.js | 2 | ||||
| -rw-r--r-- | package.json | 3 |
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); @@ -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", |
