Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ghastly

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghastly

A powerful and flexible library for modularizing Discord.js clients.

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by70%
Maintainers
1
Weekly downloads
 
Created
Source

Ghastly

npm build docs license

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');

Keywords

FAQs

Package last updated on 22 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc