https://github.com/abadima/simply-api.js
Making API queries to Simply-API is made simpler by this JS wrapper.
https://github.com/abadima/simply-api.js
api chatbot npm-package nsfw simply toxicity
Last synced: 8 months ago
JSON representation
Making API queries to Simply-API is made simpler by this JS wrapper.
- Host: GitHub
- URL: https://github.com/abadima/simply-api.js
- Owner: Abadima
- License: mit
- Created: 2022-08-19T05:54:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-15T09:04:56.000Z (almost 3 years ago)
- Last Synced: 2025-09-06T14:52:15.578Z (9 months ago)
- Topics: api, chatbot, npm-package, nsfw, simply, toxicity
- Language: JavaScript
- Homepage: https://simplyapi.js.org
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Simply-API
[](https://www.codefactor.io/repository/github/abadima/simply-api.js)
[](https://nodejs.org/en/download/)
[](https://discord.gg/3JzDV9T5Fn)
##
Download Package
```shell
npm install simply-api.js@legacy
```
(or)
```shell
yarn add simply-api.js@legacy
```
(or)
```shell
pnpm add simply-api.js
```
##
Endpoints
| Endpoint | Description |
|---------------------------|-------------------------------------------------------------|
| chatbot(msg, {options}) | Chat with [Chat Bot](https://simplyapi.js.org/docs/chatbot) |
| tictactoe(uid, ai, board) | AI Game of Tic-Tac-Toe |
| toxicity(text) | Detect Toxic messages |
##
Example Usages
### Chatbot
```js
const {chatbot} = require("simply-api");
let data = await chatbot("Test Run by Simply-API.js", {uid: 69});
console.log(data) // returns JSON result
```
### Tic-Tac-Toe
```js
const {tictactoe} = require("simply-api");
const uid = 123, ai = "o";
const board = [
" ", " ", " ",
" ", "x", " ",
" ", " ", " "
];
let data = await tictactoe(uid, ai, board);
console.log(data) // returns JSON result
```
### Toxicity
```js
const {toxicity} = require("simply-api");
const text = " *Insert offensive text here* ";
let data = await toxicity(text);
console.log(data) // returns JSON result
```
### Alternative Methods
```js
const text = " *Insert offensive text here* ";
var simplyapi = require("simply-api");
const uid = 123, ai = "o";
const board = [
" ", " ", " ",
" ", "x", " ",
" ", " ", " "
];
simplyapi.chatbot("Hello!").then(data => {
console.log(data) // returns JSON result
}); // Chat Bot AI
simplyapi.tictactoe(uid, ai, board).then(data => {
console.log() // Returns Array Result
});
simplyapi.toxicity(text).then(data => {
console.log(data) // returns JSON result
}); // Toxicity Detection
```