aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2023-03-26 23:44:05 -0400
committerAndrew Lee <alee14498@protonmail.com>2023-05-04 22:19:10 -0400
commit8c81aadddea65eef415f5b84986db21eff1fb20f (patch)
tree3e7cde1a4f9cc0e342dd1e9bcdfdc189c3645e28 /bot.js
parentb29ab06623fd24cfc2a611bdd658b4d2ef934335 (diff)
downloadDLAP-8c81aadddea65eef415f5b84986db21eff1fb20f.tar.gz
DLAP-8c81aadddea65eef415f5b84986db21eff1fb20f.tar.bz2
DLAP-8c81aadddea65eef415f5b84986db21eff1fb20f.zip
2023 update; Started to work on i18n; Readded voting
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot.js b/bot.js
index c1444b4..e6bd3c0 100644
--- a/bot.js
+++ b/bot.js
@@ -21,9 +21,11 @@
import { Client, Events, GatewayIntentBits, EmbedBuilder, Collection, version, InteractionType } from 'discord.js';
import { voiceInit } from './AudioBackend/VoiceInitialization.js';
import { readdirSync, readFileSync } from 'node:fs';
+import i18next from './Utilities/i18n.js';
// import config from './config.json' assert { type: 'json' } Not supported by ESLint yet
const { token, statusChannel, voiceChannel, djRole, ownerID, shuffle, repeat, presenceActivity, activityType } = JSON.parse(readFileSync('./config.json', 'utf-8'));
const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildVoiceStates] });
+const t = i18next.t;
bot.login(token);
// Slash Command Handler
@@ -37,8 +39,8 @@ for (const file of commandFiles) {
}
bot.once(Events.ClientReady, async() => {
- console.log('Bot is ready!');
- console.log(`Logged in as ${bot.user.tag}!`);
+ console.log(t('botReady'));
+ console.log(t('loggedIn', { bot: bot.user.tag }));
console.log(`Running on Discord.JS ${version}`);
console.log(`Voice Channel: ${voiceChannel}`);
console.log(`Status Channel: ${statusChannel}`);