Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cryskram/discogen

A CLI Utility that generates starter code to create Bots using Discord.js
https://github.com/cryskram/discogen

Last synced: about 2 months ago
JSON representation

A CLI Utility that generates starter code to create Bots using Discord.js

Awesome Lists containing this project

README

        

# discogen

![npm](https://img.shields.io/npm/v/discogen?style=for-the-badge)
![NPM](https://img.shields.io/npm/l/discogen?style=for-the-badge)

A CLI Utility that generates starter code to create Bots using Discord.js

# Features

1. Creates the Boilerplate code for creating Discord.js BOTs
2. Fast.
3. Simple.
4. Just answering the prompts will get your programming part done. You may modify it to your needs, id you want.

# Installation

- `npm install -g discogen`
- `yarn global add discogen`

# How to Get-Started

- `npm install -g discogen` or `yarn global add discogen`
- Run `discogen`
- You will get a prompt like this

![First Prompt](https://i.imgur.com/HJnriae.png)

- Enter the BOT name
- Give the BOT's prefix

![Second Prompt](https://i.imgur.com/H5jy2zc.png)

- Next paste the BOT token

![Third Prompt](https://i.imgur.com/3Zux9uT.png)

- Select the package Manager you want to use[npm or yarn]

![Fourth Prompt](https://i.imgur.com/uKI9nbe.png)

- Press ENTER and your done

# Time to test the BOT

- `cd `
- You should have a folder structure like this

![ls](https://i.imgur.com/NJ2bRmI.png)

- Run `node index.js`

![run](https://i.imgur.com/32dylCQ.png)

**_That's it your BOT is ready work. By default `discogen` adds the ping command. You can modify it to your needs_**

Let's Test the BOT now

It's online

![online](https://i.imgur.com/g0a2zWb.png)

Let's run the ping command with the prefix, in my case `?`

![runs](https://i.imgur.com/eoheEFI.png)

**That's it, the BOT is online and running in just 3 mins**

> Note: **If this project becomes a success then I will find a way to host your bots as well at a lower price**

### Happy BOT Making!