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

https://github.com/dinoscapeprogramming/localbotify-package


https://github.com/dinoscapeprogramming/localbotify-package

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# LocalBotify Package

```js
const { commandType, alert, confirm, prompt } = require("localbotify");
```

## .commandType()

```js
commandType(event);
```

**Possible types:**

- `message`
- `slashCommand`
- `button`
- `selectMenu`
- `contextMenu`
- `autocomplete`
- `modal`
- `other` _(none match)_

## .alert()

```js
alert("Title", "Body / Description");
```

## .confirm()

```js
confirm("Title", "Body / Description");
```

## .prompt()

```js
prompt("Title", "Placeholder");
```