Skip to content

FamryAmri/twen.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

What is this to for?

I use this for twen discord bot to access the
• Points
• Prefixes

Installation

npm i twen.js --save

OR you can download the repository to use it But I recommend to use that npm package

For example to use it

const twen = require("twen.js");
//key is only available for support or owner to access it

const key = "Like i said";
const ID = "Discord User ID";
const guildID = "Discord Server ID";
const defpre = "To use as Default of Prefix Bot";

twen.points (ID, key).then (console.log);

/*Output:
{ user: { points: 12948, level: 10, isLevelUp: false }, status: "OK"}
*/

twen.prefixes (guildID, defpre, key).then (console.log);

/*Output:
{ guild: { prefix: "t.", isChange: false }, status: "OK"}
*/

let num = twen.generate(); //this function to make a random number
console.log(num);

/*Output:
9
*/

All functions is promises...

Important

This is not for you want to use.. Because u didnt get the key to access it.. Only can use:
• Owner
• Support

testbruh

About

To access the twen api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published