This generator is out of date and is NOT compatible with YAMDBF 3.0.0+. I do not intend to bring this up to date or continue development on it.
Easily generate base files necessary for creating Discord.js bots using YAMDBF
First, install Yeoman and generator-yamdbf using npm or yarn.
npm install -g yo
npm install -g generator-yamdbf
-------------------------------
yarn global add yo
yarn global add generator-yamdbf
To generate a new YAMDBF bot project, from the command line, run:
yo yamdbf [-t]
The optional -t
flag will generate the project using Typescript. typescript
, tslint
, and @types/node
will be added to the package dependencies and installed for you, but you will still need to install any necessary build dependencies and typings you would normally use.
For quick reference of Discord.js and YAMDBF typings installation:
typings install github:acdenisSK/discord.js-typings/discord.d.ts --save --global
typings install github:zajrik/yamdbf-typings/yamdbf.d.ts --save --global
A command file base can be generated at any time for Javascript or Typescript using:
yo yamdbf:command [-t]
You'll want to run this from your project root, as it will try to put command files in ./src/commands
MIT © Zack Campbell