New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

generator-discordbot

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-discordbot

creates a base template to start a new Discord bot using discord.js

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

generator-discordbot NPM version Dependency Status

creates a base template to start a new Discord bot using discord.js

generator-discordbot is an easy way to get started creating a Discord bot.

generator-discordbot will include:

  • discord.js, a library that allows you to interact with the Discord API.
  • clapp, a module that makes your bot behave like in a command line interface.

generator-discordbot is based on generator-node, so your project will also include:

  • A filled package.json file
  • ESLint linting and code style checking
  • nsp known vulnerability check
  • Travis CI continuous integration (optional)
  • A license

Installation

First, install Yeoman and generator-discordbot using npm (we assume you have pre-installed node.js).

$ npm install -g yo
$ npm install -g generator-discordbot

Then generate your new project:

$ yo discordbot

Getting started

After the generation is done, first make sure that your config.js looks ok. Then you may start working in your bot. Your bot's files are located in the /lib folder. index.js is your entry point. You may add your bot's commands to the /commands folder, and they will be automatically bound to your app. To learn how to create a command, please refer to the clapp documentation. To learn how to interact with the Discord API, refer to the discord.js documentation.

Once you are done working, you can run your bot from your root folder with:

$ npm run bot

License

Apache-2.0 © Pablo Rodríguez

Keywords

discord

FAQs

Package last updated on 02 May 2017

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