0.4.0 • Published 2 years ago
@framedjs/shared v0.4.0
Framed.js
Table of Contents
About
Framed.js is a bot framework, built with TypeScript.
Installation
To install: npm install @framedjs/core
Example
import { Client, DatabaseManager } from "@framedjs/core";
const client = new Client({
defaultConnection: {
type: "sqlite",
database: "../data/FramedDB.sqlite",
synchronize: true,
entities: [DatabaseManager.defaultEntitiesPath],
},
defaultPrefix: "!",
appVersion: "0.1.0",
});
client.plugins.loadPluginsIn({
dirname: path.join(__dirname, "plugins"),
filter: /^(.+plugin)\.(js|ts)$/,
excludeDirs: /^(.*)\.(git|svn)$|^(.*)subcommands(.*)$/,
});
client.login([
{
type: "discord",
discord: {
token: "token",
},
},
]);
0.4.0
2 years ago
0.3.0
2 years ago
0.3.0-next.0
2 years ago
0.2.1
3 years ago
0.2.1-next.0
3 years ago
0.2.0
3 years ago
0.1.0
3 years ago