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

https://github.com/widgetbot-io/crate

Popup Discord widgets for your website ☄️
https://github.com/widgetbot-io/crate

crate hacktoberfest popup react widgetbot

Last synced: 11 months ago
JSON representation

Popup Discord widgets for your website ☄️

Awesome Lists containing this project

README

          

# Crate

[![npm version](https://img.shields.io/npm/v/@widgetbot/crate.svg?style=flat-square)](https://www.npmjs.com/package/@widgetbot/crate)
[![Docs](https://img.shields.io/badge/Docs-passing-green.svg?style=flat-square)](https://docs.widgetbot.io/crate/)
[![JSDelivr](https://data.jsdelivr.com/v1/package/npm/@widgetbot/crate/badge)](https://www.jsdelivr.com/package/npm/@widgetbot/crate)

Clean & powerful popup Discord widgets for your website.

![Demo](https://i.imgur.com/oq4W4Rk.gif)

# Usage

See the [documentation](https://docs.widgetbot.io/crate/) for more options.

```html

const crate = new Crate({
server: '299881420891881473',
channel: '355719584830980096'
})

crate.notify('Test notification')
crate.on('signIn', data => {
console.log(`Guest signed in as ${data.name}`)
crate.emit('sendMessage', 'Hello world')
})

```