node-simipro

2.0.2 • Public • Published

node-simipro

@node-simipro

node-simipro

Unofficial SimSimi API NodeJS
It's Free!

Installation 📑

  • Install Modules
    npm i node-simipro

How to Use 🔭

  • With Asynchronous

    • ESModule
    import simi from 'node-simipro';
    
    async function talk() {
      const res = await simi.simitalk ("bro what hepen?", "bn");
      console.log (res)
    }
    
    async function teach() {
      const res = await simi.simiteach ("bro what hepen?", "ntg hepen bruh!", "bn");
      console.log (res)
    }
    
    talk ()
    teach ()
    • CommonJS
    const simi = require('node-simipro');
    
    async function talk() {
      const res = await simi.simitalk ("bro what hepen?", "bn");
      console.log (res)
    }
    
    async function teach() {
      const res = await simi.simiteach ("bro what hepen?", "ntg hepen bruh!", "bn");
      console.log (res)
    }
    
    talk ()
    teach ()
  • Without Asynchronous

    • ESModule
    import simitalk from 'node-simipro';
    
    function talk() {
      simi.simitalk ("bro what hepen?", "bn").then((response) => {
        console.log(response);
      });
    }
    
    function teach() {
      simi.simiteach ("bro what hepen?", "ntg hepen bruh!", "bn").then((response) => {
        console.log(response);
      });
    }
    
    talk ()
    teach ()
    • CommonJS
    const simitalk = require('node-simipro');
    
    function talk() {
      simi.simitalk ("bro what hepen?", "bn").then((response) => {
        console.log(response);
      });
    }
    
    function teach() {
      simi.simiteach ("bro what hepen?", "ntg hepen bruh!", "bn").then((response) => {
        console.log(response);
      });
    }
    
    talk ()
    teach ()

Response 📨

  • Example Response simitalk
    {
      "success":true,
      "message":"bye",
      "isUnknownResponse":false
    }
  • Example response simiteach
    {
        "success": true,
        "message": "You taught the answer to \"hi\".\nNumber of answers: 99+"
    }

Built With 🛠

Error or Bug 🐞

License 📜

Package Sidebar

Install

npm i node-simipro

Weekly Downloads

16

Version

2.0.2

License

MIT

Unpacked Size

79.6 kB

Total Files

9

Last publish

Collaborators

  • anbuinfosec