0.1.0 • Published 3 years ago

@framedjs/logger v0.1.0

Weekly downloads
7
License
-
Repository
github
Last release
3 years ago

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",
    },
  },
]);