0.5.0 • Published 6 years ago

ghastly v0.5.0

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

Introduction

Ghastly is a modular command library built for Discord.js bots. It provides a powerful but flexible API which abstracts away boilerplate and makes command building a more elegant process.

Installation

Ghastly is available through npm.

npm install --save ghastly

or

yarn add ghastly

You should also install Discord.js v11 if you haven't already. This library requires Node.js >=7. For Node.js <7.6, you must start your application using node --harmony in order to enable support for async functions.

Example

This is a short runnable snippet using Ghastly. You can find more information and examples on the Ghastly website.

const { Client } = require('ghastly');

function ping() {
  async function handler() {
    return 'Pong!';
  }
  
  return {
    handler,
    triggers: ['ping'],
  };
}

const client = new Client({ prefix: '!' });

client.commands.add(ping);
client.login('token');
0.5.0

6 years ago

0.5.0-rc.1

6 years ago

0.5.0-rc.0

6 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago