JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 29
  • Score
    100M100P100Q61829F

Package Exports

  • @quanty/framework
  • @quanty/framework/dist/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@quanty/framework) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@Quanty/framework - The best bot framework.

About

This framework is a powerful tool for initializing your Discord Bot.

Features

  • Written in typescript with the help of decorators
  • Command/Feature handlers
  • Powerful command configurations

Extra Features

  • Music Manager for your private servers

Future Features

  • Advanced plugin system for slash commands
  • Minimal set-up, easy plug and play
  • Configurable preset commands (help, plugins, .etc)

Installation

Node.js 16.6.0 or newer is required.

@quanty/framework needs only 1 dependency!

Install the package using the following command or use a package manager of your choice.

yarn add @quanty/framework discord.js

Example usage

import QuantyClient from '@quanty/framework'

export const client: QuantyClient = new QuantyClient(
  {
    token: 'INSERT_TOKEN_HERE',
    commandDir: 'commands/',
    eventDir: 'events/',
    owner: 'INSERT_OWNER_ID_HERE',
    baseDir: 'test/',
    outDir: 'dist/',
    defaults: true,
    logLevel: 'DEBUG',
    devGuilds: '871581301713555526',
  },
  {
    intents: ['GUILDS', 'GUILD_MESSAGES', 'GUILD_PRESENCES'],
    presence: {
      activities: [
        {
          name: 'quanty.xyz',
          type: 'PLAYING',
          url: 'https://www.quanty.xyz/',
        },
      ],
    },
  },
)

void client.start()

More details and information about how to use this framework will come later in documentation.

If you need help with anything feel free to join the Quantum Realm and ask me personally or join some helpful discords below.

Contributing

Before creating an issue, just double check if it already isn't reported/solved. Other than that, if you'd like to submit a PR, go for it

If you also find an issue, please feel free to open an issue.