2024-12-05 21:13:43 +05:00
|
|
|
// import "./helpers/extenders.js";
|
|
|
|
|
|
|
|
// import { GatewayIntentBits } from "discord.js";
|
|
|
|
// import JaBaClient from "./base/Client.js";
|
|
|
|
// import languages from "./helpers/languages.js";
|
2022-01-04 02:18:28 +05:00
|
|
|
|
2024-12-05 19:16:01 +05:00
|
|
|
import { GatewayIntentBits } from "discord.js";
|
2024-12-05 21:13:43 +05:00
|
|
|
import { ExtendedClient } from "./base/newClient.js";
|
2022-01-04 02:18:28 +05:00
|
|
|
|
2024-12-05 21:13:43 +05:00
|
|
|
export const client = new ExtendedClient({
|
2024-12-05 19:16:01 +05:00
|
|
|
intents: [
|
|
|
|
GatewayIntentBits.Guilds,
|
|
|
|
GatewayIntentBits.GuildMembers,
|
|
|
|
GatewayIntentBits.GuildModeration,
|
|
|
|
GatewayIntentBits.GuildEmojisAndStickers,
|
|
|
|
GatewayIntentBits.GuildIntegrations,
|
|
|
|
GatewayIntentBits.GuildInvites,
|
|
|
|
GatewayIntentBits.GuildVoiceStates,
|
|
|
|
GatewayIntentBits.GuildPresences,
|
|
|
|
GatewayIntentBits.GuildMessages,
|
|
|
|
GatewayIntentBits.GuildMessageReactions,
|
|
|
|
GatewayIntentBits.GuildMessageTyping,
|
|
|
|
GatewayIntentBits.MessageContent,
|
|
|
|
GatewayIntentBits.DirectMessageTyping,
|
|
|
|
GatewayIntentBits.DirectMessages,
|
|
|
|
GatewayIntentBits.DirectMessageReactions,
|
|
|
|
],
|
2022-12-15 21:02:38 +05:00
|
|
|
allowedMentions: { parse: ["everyone", "roles", "users"] },
|
2022-01-03 23:20:33 +05:00
|
|
|
});
|
2022-01-04 02:18:28 +05:00
|
|
|
|
2024-12-05 21:13:43 +05:00
|
|
|
client.init();
|
|
|
|
|
|
|
|
// const client = new JaBaClient({
|
|
|
|
// intents: [
|
|
|
|
// GatewayIntentBits.Guilds,
|
|
|
|
// GatewayIntentBits.GuildMembers,
|
|
|
|
// GatewayIntentBits.GuildModeration,
|
|
|
|
// GatewayIntentBits.GuildEmojisAndStickers,
|
|
|
|
// GatewayIntentBits.GuildIntegrations,
|
|
|
|
// GatewayIntentBits.GuildInvites,
|
|
|
|
// GatewayIntentBits.GuildVoiceStates,
|
|
|
|
// GatewayIntentBits.GuildPresences,
|
|
|
|
// GatewayIntentBits.GuildMessages,
|
|
|
|
// GatewayIntentBits.GuildMessageReactions,
|
|
|
|
// GatewayIntentBits.GuildMessageTyping,
|
|
|
|
// GatewayIntentBits.MessageContent,
|
|
|
|
// GatewayIntentBits.DirectMessageTyping,
|
|
|
|
// GatewayIntentBits.DirectMessages,
|
|
|
|
// GatewayIntentBits.DirectMessageReactions,
|
|
|
|
// ],
|
|
|
|
// allowedMentions: { parse: ["everyone", "roles", "users"] },
|
|
|
|
// });
|
|
|
|
|
|
|
|
// (async () => {
|
|
|
|
// console.time("botReady");
|
2023-06-27 19:01:39 +05:00
|
|
|
|
2024-12-05 21:13:43 +05:00
|
|
|
// client.translations = await languages();
|
2022-07-26 17:20:10 +05:00
|
|
|
|
2024-12-05 21:13:43 +05:00
|
|
|
// await client.loadEvents("../events");
|
|
|
|
// await client.loadCommands("../commands");
|
|
|
|
// await client.init();
|
|
|
|
// })();
|
2022-01-04 02:18:28 +05:00
|
|
|
|
2024-12-05 21:13:43 +05:00
|
|
|
// client
|
|
|
|
// .on("disconnect", () => client.logger.warn("Bot disconnected."))
|
|
|
|
// .on("reconnecting", () => client.logger.warn("Bot reconnecting..."))
|
|
|
|
// .on("warn", console.log)
|
|
|
|
// .on("error", console.log);
|
2024-02-06 21:45:53 +05:00
|
|
|
|
2024-12-05 21:13:43 +05:00
|
|
|
// process.on("unhandledRejection", e => console.log(e)).on("uncaughtException", e => console.log(e));
|