# smartplus

> A JavaScript Discord Libary

Latest version **2.0.9** (published 2021-05-10) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2.0.9 |
| Published | 2021-05-10 |
| First published | 2021-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Snowy#4099 |
| Maintainers | snowyjs |
| Keywords | Smart+, Smart, Plus, SmartPlus |

## Links

- npm: https://www.npmjs.com/package/smartplus
- Repository: https://github.com/snowyjs/smart
- Homepage: https://github.com/snowyjs/SmartPlus#readme
- Issues: https://github.com/snowyjs/SmartPlus/issues
- npm.io page: https://npm.io/package/smartplus

## Recent versions

- 2.0.9 (latest) — 2021-05-10
- 2.0.8 — 2021-05-10
- 2.0.7 — 2021-05-10
- 2.0.6 — 2021-05-10
- 2.0.5 — 2021-05-10
- 2.0.4 — 2021-05-10
- 2.0.3 — 2021-05-10
- 2.0.2 — 2021-05-10
- 2.0.1 — 2021-05-10
- 2.0.0 — 2021-05-10
- 1.0.2 — 2021-04-04
- 1.0.1 — 2021-04-04
- 1.0.0 — 2021-04-04

## README

# Smart+ || SmartPlus

# How to start? ❓

1. Download the package: `npm install smartplus`.
2. Download Discord.JS: `npm install discord.js`.
2. Create a index.js file.

# What to code? 💻

```
const SmartPlus = require("smartplus");
const bot = new SmartPlus.Client({
    token: "",
    prefix: ""
});

bot.online();
```

# How to add commands? 📡

1. Create a folder and name it `commands`.
2. Create a file in the `commands` folder and name it to your command name.

# What is the command basic? 💻

```
module.exports = {
    name: "Command Name",
    description: "Command Description",
    run: async (client, message, args) => {
        // The Command Code Here. ( SmartPlus, Discord.JS, NodeJS )
    },
};
```
# What are the client and command options? ⚙

# Client

```
SmartPlus.Client({
    token: "", 
    prefix: "",
    status: "",
    statusType: "",
    embedColor: "",
});
```

# Message & Command


- Success embed:
```if (args[0]) message.DiscordSend("This is a success embed!")```

- Send a automatic error
```if (!args[0]) return message.DiscordError("No args provided")```

- Embed:
```message.SmartEmbed({title: "test", descriptions: "test", color: "#00ff00"})```

- Find a member:
```
let member = message.FindUser(args[0]);
if (!member) return message.DiscordError("No member found!");
```

- Find a channel:
```
let channel = message.FindChannel(args[0]);
if (!channel) return message.error("No channel found!");
```

- Find a role:
```
let role = message.FindRole(args[0]);
if (!role) return message.error("No role found!");
```

- Check user is guild owner:
```if(!message.member.CheckOwnership()) return message.error("User is no owner!");```

- Check user is admin:
```if(!message.member.CheckAdmin()) return message.error("User is no admin!");```

- Check user is moderator:
```if(!message.member.CheckModerator()) return message.error("User is no moderator!");```

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