novader
v2.1.5
Published
Economy, Youtube, Spotify Level System, Player, APİ, DB, Reddit
Downloads
22
Maintainers
Readme
NOVADER v2
INNOVATION
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
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(member_id) // user level is there?
level.addLevel(message,{antispam:true}) //levle system
level.get(member_id) //Level Data
APİ's
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
const eco = new Novader.Economy();
eco.set("member_id",10) // MONEY INCREASE
eco.Recieve("member_id",10) // MONEY Decrease
eco.has("member_id") // ACCOUNT true/false ?
eco.Account("member_id") //GET ACCOUNT İD İN MONEY
eco.reset() // ALL DELETE
Youtube Music Player System
// client added
const player = new Novader.Player(client,{"YOUTUBE":"YOUTUBE_APİ_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
npm install ffmpeg-static
npm install ytdl-core@latest
Queue System
const queue = new Novader.Queue("YOUTUBE_APİ_KEY");
queue.set("123",elements.url) //video Data Create and Set
queue.has() //Queue TRUE/FALSE
queue.get("123") //Queue Get "Queue_Namme"
queue.delete("123") //Queue Delete "Queue_Namme"
queue.SkipToNext("123") //Video Skip To Nexted (Beta)
Database System
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("NUMBER_DATA",number) // Number +
db.remove("NUMBER_DATA",number) // Number -
db.deleteall() //FİLE DATA ALL DELETE
db.delete("data") //DELETE DATA
LEVEL CODE
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("<YOUR_TOKEN>")
///SEARCH
const scs = new Novader.Search("YOUTUBE_APİ_KEY");
await scs.getPlaylist("<Youtube-PLAYLİST-url>") // youtube playlist music url infos (RELOADED)
await scs.SearchVideo("<Youtube-Search>") //SEARCH (FİXED)
await scs.getVideo("<Youtube-Video-URL>") //VİDEO İNFOS (FİXED)
await scs.getSpotify("<Spotify-url>") // spotify music url infos (NORMAL)
Search Appearances
//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 :)