# @biscuitland/core Classes, functions and main structures to create an application with biscuit. Core contains the essentials to launch you to develop your own customized and scalable bot. [](https://github.com/oasisjs/biscuit) [](https://discord.gg/XNw2RZFzaP) ## Getting Started ### Install (for [node18](https://nodejs.org/en/download/)) ```sh-session npm install @biscuitland/core yarn add @biscuitland/core ``` ### Example bot `project/index.js`: ```js import { Session } from '@biscuitland/core'; import { GatewayIntents } from '@biscuitland/api-types'; const session = new Session({ token: 'your token', intents: GatewayIntents.Guilds }); const commands = [ { name: 'ping', description: 'Replies with pong!' } ]; session.events.on('ready', ({ user }) => { console.log('Logged in as:', user.tag); session.upsertApplicationCommands(commands, 'GUILD_ID'); }); session.events.on('interactionCreate', (interaction) => { if (interaction.isCommand()) { // your commands go here if (interaction.commandName === 'ping') { interaction.respondWith({ content: 'pong!' }); } } }); session.start(); ``` ### Execute For node 18.+: ``` B:\project> node index.js ``` For node 16.+: ``` B:\project> node --experimental-fetch index.js ``` ## Links * [Website](https://biscuitjs.com/) * [Documentation](https://docs.biscuitjs.com/) * [Discord](https://discord.gg/XNw2RZFzaP) * [api-types](https://www.npmjs.com/package/@biscuitland/api-types) | [cache](https://www.npmjs.com/package/@biscuitland/cache) | [rest](https://www.npmjs.com/package/@biscuitland/rest) | [ws](https://www.npmjs.com/package/@biscuitland/ws) | [helpers](https://www.npmjs.com/package/@biscuitland/helpers)