diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-03-26 23:44:05 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-05-04 22:19:10 -0400 |
| commit | 8c81aadddea65eef415f5b84986db21eff1fb20f (patch) | |
| tree | 3e7cde1a4f9cc0e342dd1e9bcdfdc189c3645e28 /bot.js | |
| parent | b29ab06623fd24cfc2a611bdd658b4d2ef934335 (diff) | |
| download | DLAP-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.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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}`); |
