@biscuitland/core
TypeScript icon, indicating that this package has built-in type declarations

3.0.12 • Public • Published

@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

Links

Package Sidebar

Install

npm i @biscuitland/core

Weekly Downloads

4

Version

3.0.12

License

Apache-2.0

Unpacked Size

111 kB

Total Files

6

Last publish

Collaborators

  • drylozu
  • socram03
  • miia