@biscuitland/core
v3.0.12
Published
Core contains the essentials to launch you to develop your own customized and scalable bot.
Downloads
38
Readme
@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 '@biscuitland/common';
const session = new Session({ token: 'your token', intents: GatewayIntentBits.Guilds });
session.on('READY', (payload, shardId) => {
console.log('Logged in as: %s in shard #%s', payload.user.username, shardId);
});
session.start();
Execute
For node 18.+:
B:\project> node index.js
For node 16.+:
B:\project> node --experimental-fetch index.js