diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-02 16:24:26 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-02 16:24:26 -0500 |
| commit | 1c253d25cb1d35aa987d76e07806999c562712d6 (patch) | |
| tree | 02655b6a3bed5b3604b56deb4c2af199f2609a64 /bot/src/bot.js | |
| parent | f98f7e6a34f02e8d6ea6673fbe68ab6db28a2e89 (diff) | |
| download | AleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.tar.gz AleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.tar.bz2 AleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.zip | |
Bringing more features from 2.x; ESLint; API
Diffstat (limited to 'bot/src/bot.js')
| -rw-r--r-- | bot/src/bot.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/bot/src/bot.js b/bot/src/bot.js index af2aec2..07b13a8 100644 --- a/bot/src/bot.js +++ b/bot/src/bot.js @@ -1,12 +1,14 @@ -import { Client, GatewayIntentBits } from 'discord.js' -import 'dotenv/config' -import { event } from './handler/event.js' -import { commands } from "./handler/commands.js"; +import { Client, GatewayIntentBits } from 'discord.js'; +import 'dotenv/config'; +import { event } from './handlers/event.js'; +import { command } from './handlers/command.js'; +import { apiServer } from '../api/server.js'; const client = new Client({ intents: [GatewayIntentBits.Guilds] }); -commands(client); -event(client); +command(client).then(() => console.log('[i] Command module loaded')); +event(client).then(() => console.log('[i] Event module loaded')); +apiServer(client); if (process.argv.indexOf('--beta') === -1) { client.login(process.env.abtoken).catch(function() { |
