0.3.9 • Published 2 years ago

crisp.js v0.3.9

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
2 years ago

Crisp.js

A lightweight API Wrapper for Crispy Clients (Javascript/ES6).

This API Wrapper is used to make Bot's for Crispy Chat, or Client's with limited permissions

Example Usage

You need to specify --experimental-specifier-resolution=node

import { Client } from "crisp.js"

let Client = new Client();

client.on("ready", async () => {
    console.log(`userdata ${client.user}`)
});

client.on('message', message => {
    if(message.content ==   "!ping"){
        message.send("pong!")
    }
});

client.login(botEmail, botPassword); // Replace botEmail, botPassword with your bot's email and password

Client Permissions

Crisp.js is a direct Client to Crispy's Guilds (bypassing security features such as needing to join to read or send messages) intended for Bot's. This is possible thanks to the 'Spy' feature, and delimiting some permissions.

Any Client, Bot or not, using Crisp.js to interact with Crispy are limited to:

  • Not being able to join guild's
  • Not being able to leave guild's
  • Not being able to change Username, Profile Image, change password or Attach Files to messages

Crisp.js Client's are permitted to:

  • View all messages in any guild (Spy)
  • Send messages without joining a guild (Interpret)