# commandcord.js

> A javascript/node.js discord API wrapper making commands easier than current wrappers.

Latest version **1.0.3** (published 2021-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install commandcord.js
pnpm add commandcord.js
yarn add commandcord.js
bun add commandcord.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-01-29 |
| First published | 2021-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | rij1234 |
| Maintainers | rij1234 |
| Keywords | commandcord, commandcord.js, discord, discord api, discord api wrapper |

## Links

- npm: https://www.npmjs.com/package/commandcord.js
- Repository: https://github.com/rij1234/commandcord.js
- Homepage: https://commandcord.js.org
- Issues: https://github.com/rij1234/commandcord.js/issues
- npm.io page: https://npm.io/package/commandcord.js

## Dependencies (2)

- [ws](https://npm.io/package/ws.md) ^7.4.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Recent versions

- 1.0.3 (latest) — 2021-01-29
- 1.0.2 — 2021-01-29
- 1.0.1 — 2021-01-26
- 1.0.0 — 2021-01-26

## README

# Commandcord.js
#### A javascript/node.js discord API wrapper making commands easier than current wrappers.

####  [Support Server](https://rjson.dev/support)
![DISCORD](https://img.shields.io/discord/708124653411106888?color=7289da&logo=discord&logoColor=white)

## Table Of Contents
<a href="#">Commandcord.js</a><br>
<a href="#Stats">Stats</a><br>
<a href="#install">Install</a><br>
<a href="#basic-commands-bot">Command Example</a><br>
<a href="#basic-on_message-bot">On Message Example</a><br>

## Stats
[![NPM](https://nodei.co/npm/commandcord.js.png)](https://www.npmjs.com/package/commandcord.js/v/latest)

## Install
```npm i commandcord.js```

## Basic Commands Bot
Simple `!ping` pong bot using commands

```js
const Discord = require("commandcord.js")
const bot = new Discord.commands.Bot(command_prefix="!")

bot.cmd.on("ping", (ctx) => {
    ctx.send("pong!")
})

/*
When '!ping' is typed, then the bot will reply with 'pong!'. 
*/

bot.run("BOT_TOKEN")
```


## Basic on_message Bot
```js
const Discord = require("commandcord.js")
const bot = new Discord.commands.Bot()

bot.events.on("message", (m) => {
    if(m.content === "!ping"){
        await m.channel.send("pong!")
    }
})

/*
When '!ping' is typed, then the bot will reply with 'pong!'. 
*/

bot.run("BOT_TOKEN")
```

---
_Source: https://npm.io/package/commandcord.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
