A node.js module allow to interect with SwiftScript Api easily.
Features
- Easy To Use
- Lightweight
- Easy Integration
- Object-oriented
Installation
Node.js 16.9.0 or newer is required.
npm install swiftscript
or
npm install github.com/AAYAN717628/SwiftScript
Example
const SwiftScript = require("swiftscript");
const swiftscript = new SwiftScript("TOKEN")
const truth = swiftscript.truth().then(x => console.log(x))
const dare = swiftscript.dare().then(x => console.log(x))
const rtnd = swiftscript.randomtnd().then(x => console.log(x))
const triva = swiftscript.triva(2).then(x => console.log(x))
const bored = swiftscript.bored().then(x => console.log(x))
const age = swiftscript.agethink("aayan").then(x => console.log(x))
const gen = swiftscript.genderthink("aayan").then(x => console.log(x))
const af = swiftscript.animefacts().then(x => console.log(x))
const facts = swiftscript.randomfacts().then(x => console.log(x))
const paranoia = swiftscript.paranoia().then(x => console.log(x))
const dev = swiftscript.developerlines().then(x => console.log(x))
const lines = swiftscript.lines().then(x => console.log(x))
const img = swiftscript.imgsearch("tv").then(x => console.log(x))
Documentation
Get Token
How to get Access Token ?
Vist these website register yourself after that you will been redirect
to dashboard , on left side panel there will be a button named "Token" click on
that and the token will be copied.
Authors
Support
For support, join our discord server