mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00: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