diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-12-02 22:05:20 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-12-02 22:05:20 -0500 |
| commit | c576ed4e454fe6b4974e7ad873670e3adc9d0a96 (patch) | |
| tree | ae6f06f8f21f78d5023019b64772f484f5377fb7 /bot.js | |
| parent | e0fe64b06c0eb8b92578ae1bf5a166f8d633c9b3 (diff) | |
| download | DLAP-c576ed4e454fe6b4974e7ad873670e3adc9d0a96.tar.gz DLAP-c576ed4e454fe6b4974e7ad873670e3adc9d0a96.tar.bz2 DLAP-c576ed4e454fe6b4974e7ad873670e3adc9d0a96.zip | |
Fixes to various things
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -22,8 +22,7 @@ import { Client, GatewayIntentBits, EmbedBuilder, Collection, version, Interacti import { voiceInit } from './backend/VoiceInitialization.js'; import { readdirSync, readFileSync } from 'node:fs'; // import config from './config.json' assert { type: 'json' } Not supported by ESLint yet -const { token, statusChannel, voiceChannel, shuffle } = JSON.parse(readFileSync('./config.json', 'utf-8')); - +const { token, statusChannel, voiceChannel, shuffle, presenceActivity } = JSON.parse(readFileSync('./config.json', 'utf-8')); const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildVoiceStates] }); bot.login(token); @@ -49,12 +48,12 @@ bot.once('ready', async() => { console.log(`Running on Discord.JS ${version}`); console.log(`Voice Channel: ${voiceChannel}`); console.log(`Status Channel: ${statusChannel}`); - console.log(`Shuffle enabled: ${shuffle}`); + console.log(`Shuffle Enabled: ${shuffle}`); // Set bots' presence bot.user.setPresence({ activities: [{ - name: 'some beats', + name: presenceActivity, type: 'LISTENING' }], status: 'online' |
