1.0.2 • Published 2 years ago

voltare v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Voltare

NPM version NPM downloads ESLint status

Voltare is a version of the Dexare framework for Revolt. Easily make modules that depend on others or overwrite their functions.

Per revolt.js's README, you must use the --experimental-specifier-resolution=node when running scripts. Example: node --experimental-specifier-resolution=node index.js

Note: This is still in development. As revolt.js is still in beta, this framework may have some bugs.

Documentation is unavailable at the moment, but some of the core features of Voltare is taken from the Documentation for Dexare.

Client Example

import { VoltareClient } from 'voltare';
import { fileURLToPath } from 'url';
import { join } from 'path';

const client = new VoltareClient({
  login: {
    type: 'bot',
    // Your bot's token
    token: ''
  },
  // A prefix to use, can be a string or an array of strings
  prefix: '!',
  // Whether to include a mention as a prefix, defaults to false
  mentionPrefix: true,
  // Enter your ID here, can be a string or an array of strings
  elevated: '01FE...'
});

// This logs important Revolt events to the `logger` event.
client.logRevoltEvents();

// Logs things from the `logger` event to console in the debug level, can be ither `debug`, `info`, `warn` or `error`.
client.logToConsole('info');

// Registers all commands in a folder (don't use with ts-node)
await client.commands.registerFromFolder(join(fileURLToPath(import.meta.url), '..', 'commands'));
// You can register a single command with `client.commands.register(HelloCommand)`.

// Registers default commands listed below, you can pass an array of strings to select commands to register,
// 'eval', 'help', 'ping', 'exec', 'kill', 'load', 'unload', 'reload';
client.commands.registerDefaults();

// Connect!
client.connect();
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago