2023-06-04 23:41:49 -04:00
..
2023-06-04 23:41:49 -04:00
2023-01-15 05:27:49 -05:00
2023-06-01 19:58:32 -04:00

@biscuitland/core

Core contains the essentials to launch you to develop your own customized and scalable bot.

Getting Started

Install (for node18)

npm install @biscuitland/core
yarn add @biscuitland/core

Example bot

project/index.js:

import { Session } from '@biscuitland/core';
import { GatewayIntentBits } from "discord-api-types/v10";

const session = new Session({ token: 'your token', intents: GatewayIntentBits.Guilds });

session.events.on('READY', (payload) => {
    console.log('Logged in as:', payload.user.username);
});

session.start();

Execute

For node 18.+:

B:\project> node index.js

For node 16.+:

B:\project> node --experimental-fetch index.js