novader

Economy, Youtube, Spotify Level System, Player, APİ, DB, Reddit

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
novader
2.1.52 years ago2 years agoMinified + gzip package size for novader in KB

Readme

NOVADER v2
INNOVATION
```js BUGS FIXED! ADDED - RandomKeyCreater ///ADDED : REDDİT POST //does not support video format const Novader = require("novader") const api = new Novader.API()
let rp = await api.RedditPost("POST_URL")
console.log(rp)
```
SYSTEMS

Level System

```js const Novader = require("novader") const level = new Novader.Level() level.on("LevelUp",(upeded,info) => { console.log(upeded ,info)
//TRUE/FALSE { name: 'USERNAME', level: level, xp: xp }
}) level.upLevel(message) //level upeded? level.hasLevel(memberid) // user level is there? level.addLevel(message,{antispam:true}) //levle system level.get(memberid) //Level Data ``` levelexample

APİ's

```js const api = new Novader.API() //lyrics
let lu1 = await api.Lyrics({"song":"Gangsta Paradise","author":"Coolio"})
console.log(lu1)
//OR                                //YOUTUBE_URL
let lu2 = await api.Lyrics({"url":"https://www.youtube.com/watch?v=fPO76Jlnz6c"})
console.log(lu2)
//REDDİT COMMUNİTY
let reddit = await api.Reddit("communty_name_or_communty_url")
//EXAMPLE
let r1 = await api.Reddit("https://www.reddit.com/r/BoneSaures/")
console.log(r1)
//OR
let r2 = await api.Reddit("BoneSaures")
console.log(r2)
//REDDİT COMMUNİTY LASTPOST
let r3 = await api.RedditLastPost("communty_name_or_communty_url")
console.log(r3)
//REDDİT POST
let r4 = await api.RedditPost("POST_URL")
console.log(r4)
```

Economy System

```js const eco = new Novader.Economy(); eco.set("memberid",10) // MONEY INCREASE eco.Recieve("memberid",10) // MONEY Decrease eco.has("memberid") // ACCOUNT true/false ? eco.Account("memberid") //GET ACCOUNT İD İN MONEY eco.reset() // ALL DELETE ```

Youtube Music Player System

```js // client added const player = new Novader.Player(client,{"YOUTUBE":"YOUTUBEAPİKEY"}); await player.play(message,"video NAME/URL") //VİDEO PLAY CODE await player.getInfo("video NAME/URL",) /// Enter the searched to video (FİXED) player.leave(message) //Sudden Exit from the Current Channel player.isPlaying(message) //is Playing => True Else Falase ``` Required module for Music System ```sh npm install ffmpeg-static npm install ytdl-core@latest ```

Queue System

```js const queue = new Novader.Queue("YOUTUBEAPİKEY"); queue.set("123",elements.url) //video Data Create and Set queue.has() //Queue TRUE/FALSE queue.get("123") //Queue Get "QueueNamme" queue.delete("123") //Queue Delete "QueueNamme" queue.SkipToNext("123") //Video Skip To Nexted (Beta) ```

Database System

```js const db = new Novader.Database({"file":"./filename.json","AutoFile": true,"Jsonspaces":1}); db.all() //FİLE ALL DATA db.set("data","value") //SET DATA db.push("data","value") //PUSH CODE db.push("data","value") //UNPUSH CODE db.get("data") // GET DATA db.has("data") // DATA TURE/FALSE ? db.backup("FileName") //FİLE BACK UP db.add("NUMBERDATA",number) // Number + db.remove("NUMBERDATA",number) // Number - db.deleteall() //FİLE DATA ALL DELETE db.delete("data") //DELETE DATA ```
LEVEL CODE
```js const Novader = require("novader") const level = new Novader.Level() level.on("LevelUp",(upeded,info) => {
console.log(upeded ,info)
//TRUE/FALSE { name: 'USERNAME', level: level, xp: xp }
if(upeded){
console.log(info.name+" Level Upeded! 🥳 "+info.level)
}
}) client.on("message",message => { if(message.member.user.bot){return} if(level.hasLevel(message.author.id)){ console.log(level.hasLevel(message.author.id)) } level.addLevel(message,{antispam:true}) }) client.login("TOKEN>") ``` ```js ///SEARCH const scs = new Novader.Search("YOUTUBEAPİKEY"); await scs.getPlaylist("") // youtube playlist music url infos (RELOADED) await scs.SearchVideo("") //SEARCH (FİXED) await scs.getVideo("") //VİDEO İNFOS (FİXED) await scs.getSpotify("") // spotify music url infos (NORMAL) ```
Search Appearances
```js //delete api ====> EXAMPLE const Novader = require("novader") const Search = new Novader.Search("You
Key"); const eco = new Novader.Economy(); const elements = {
search:"riv riv riv",
spotify:"https://open.spotify.com/track/5nTtCOCds6I0PHMNtqelas",
url:"https://www.youtube.com/watch?v=GIkKGW628aQ",
id:"GIkKGW628aQ"
} async function Search() {
let SearchVideo = await Search.SearchVideo(elements.search)
console.log(SearchVideo)
let getVideo = await SearchScript.getVideo(elements.url)
console.log(getVideo)
let SpotifySearch = await SearchScript.getVideo(elements.spotify)
console.log(SpotifySearch)
```

DEVLOPER NOTES

``` Discord Client Bot System will be added in Novader v5 version. OR Chat System will be added. ```

URL's

Novader v2.1.2 - Lastest Part :)