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

1.3.0 • Public • Published

@conductr/core

Main package of the Conductr framework.

Discord server npm version npm downloads Tests status Code coverage


Installation

npm install @conductr/core
yarn install @conductr/core
pnpm install @conductr/core

Example usage

```ts
import { Conductr, GenericReceiver } from '@conductr/core';

new Conductr({
    applicationId: process.env.DISCORD_APPLICATION_ID,
    token: process.env.DISCORD_TOKEN
})
.registerCommandAndComponents(COMMANDS)
.registerCommandAndComponents(COMPONENTS)
.registerReceiver(new GenericReceiver(handler => {
    discord.on('interactionCreate', handler);
}));
// the receiver should be used to proccess the interactions
// the receiver is designed to take in interactions from 
// anything such as a http server, message queue, or a discord client
```

Additional documentation and examples are in progress...

Package Sidebar

Install

npm i @conductr/core

Weekly Downloads

4

Version

1.3.0

License

Apache-2.0

Unpacked Size

361 kB

Total Files

8

Last publish

Collaborators

  • iam10k