Installing ShadowCore globally is not required. It is only recommended if you want easy access to the CLI once it is fully finished. You can skip this step for now.
To install ShadowCore globally, run:
Copy
npm install -g shadow-core
Or, if you prefer using it locally within a project:
Create a new file called index.ts (or index.js if using JavaScript) and open it in your editor.Paste the following basic bot setup:
Copy
import { Bot } from "shadow-core";import { GatewayIntentBits } from "discord.js";// Replace with your bot's tokenconst token = "YOUR_BOT_TOKEN"; // Replace with your Bots tokenconst GUILD_ID = "YOUR_GUILD_ID"; // Replace with your server's ID// Initialize the botexport const bot = new Bot( token, [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent], false // Debug mode disabled);// Log when the bot is readybot.getClient().once("ready", () => { console.log(`✅ Logged in as ${bot.getClient().user?.tag}`); bot.getCommandManager().registerCommands(GUILD_ID);});
If you encounter any issues, check out the FAQ or join the community for support.You’re all set! 🚀 Start building your bot and take full advantage of ShadowCore’s powerful features.