# isic

> A discord bot

Latest version **0.5.2** (published 2017-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install isic
pnpm add isic
yarn add isic
bun add isic
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.2 |
| Published | 2017-08-08 |
| First published | 2017-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+3 in 3 direct dependencies) |
| Install scripts | no |
| Author | Christopher Kaster |
| Maintainers | atomicptr |

## Links

- npm: https://www.npmjs.com/package/isic
- npm.io page: https://npm.io/package/isic

## Dependencies (6)

- [uuid](https://npm.io/package/uuid.md) ^3.0.1
- [express](https://npm.io/package/express.md) ^4.15.3
- [mongodb](https://npm.io/package/mongodb.md) ^2.2.27
- [request](https://npm.io/package/request.md) ^2.81.0
- [discord.js](https://npm.io/package/discord.js.md) ^11.1.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.17.2

## Recent versions

- 0.5.2 (latest) — 2017-08-08
- 0.5.1 — 2017-05-27
- 0.5.0 — 2017-05-26
- 0.4.1 — 2017-05-07
- 0.4.0 — 2017-03-11
- 0.3.1 — 2017-02-23
- 0.3.0 — 2017-02-18
- 0.2.3 — 2017-02-05
- 0.2.2 — 2017-02-04
- 0.2.1 — 2017-01-28
- 0.2.0 — 2017-01-28
- 0.1.2 — 2017-01-28
- 0.1.1 — 2017-01-27
- 0.1.0 — 2017-01-27

## README

# isic

A modular [Discord](https://discordapp.com/) bot.

## Usage

You can either clone this directory and run the bot via ```npm start``` or install the **isic** package via ```npm install isic```.

### Use isic as a package

You can use isic as a npm package:

```javascript
const {Bot} = require("isic")

let bot = new Bot({discordToken: "YOUR_DISCORD_TOKEN"})

// after bot is ready
bot.on("setup", () => {

    // add your own commands
    bot.command("test", (res, args) => {
        res.send("This is a test!")
    })
})

```

## Module structure

Your module directory should look like this:

    modules/
        helloworld/
            module.json
            helloworld.js

Example for ```module.json```:

```json
{
    "ident": "github.atomicptr.HelloWorld",
    "main": "helloworld.js"
}
```

Example for ```helloworld.js```:

```js
module.exports = function(bot) {

    bot.command("hello", (res, args) => {
        let name = "World"

        if(args.length > 0) {
            name = args.join(" ")
        }

        res.reply(`Hello, ${name}!`).then(message => {
            if(res.canI("ADD_REACTIONS")) {
                message.react("😁")
            }
        })
    })
}
```

## License

MIT

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