-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed some features and add example folder
- Loading branch information
1 parent
fab0bd5
commit c9269b3
Showing
13 changed files
with
243 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = config = { | ||
baseFilmApik: "https://filmapik.ing/", | ||
baseIgram: "https://igram.world/", | ||
baseOtakudesu: "https://otakudesu.cloud/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const { ai } = require("../index.js") | ||
|
||
// text to picture | ||
async function textToPicture(text) { | ||
const data = await ai.textToImage(text) | ||
console.log(data) | ||
return data | ||
} | ||
textToPicture("a girl standing on the field") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
const { downloader } = require("../index.js") | ||
|
||
// Twitter downloader | ||
async function twitterDownloader(url) { | ||
const data = await downloader.twitterdl(url) // if error, change to twitterdl2 | ||
console.log(data) | ||
return data | ||
} | ||
twitterDownloader("https://twitter.com/sapphoria_th/status/1803300713461850183?t=mlTZ031i-2vzHUrnW2sG0g&s=19") | ||
|
||
// Instagram downloader | ||
async function instagramDownloader(url) { | ||
const data = await downloader.igdl(url) // if error, change to igdl2 | ||
console.log(data) | ||
return data | ||
} | ||
instagramDownloader("https://www.instagram.com/reel/C8M8BJ-Ad91/") | ||
|
||
// Instagram story downloader | ||
async function instagramStory(username) { | ||
const data = await downloader.igStory(username) // if error, change to igStory2 | ||
console.log(data) | ||
return data | ||
} | ||
instagramStory("nechlophomeria") | ||
|
||
// Facebook downloader | ||
async function facebookDownloader(url) { | ||
const data = await downloader.fbdl(url) | ||
console.log(data) | ||
return data | ||
} | ||
facebookDownloader("https://www.facebook.com/share/r/TNJa6gmMyvkq8FpE/?mibextid=0VwfS7") | ||
|
||
// Pinterest downloader | ||
async function pinterestDownloader(url) { | ||
const data = await downloader.pindl(url) | ||
console.log(data) | ||
return data | ||
} | ||
pinterestDownloader("https://pin.it/6AJjwwMPr") | ||
|
||
// Tiktok downloader | ||
async function tiktokDownloader(url) { | ||
const data = await downloader.tiktokdl(url) // if error, change to tiktokdl2 | ||
console.log(data) | ||
return data | ||
} | ||
tiktokDownloader("https://vt.tiktok.com/ZSYfbE2Ar/") | ||
|
||
// Spotify downloader | ||
async function spotifyDownloader(url) { | ||
const data = await downloader.spotify(url) // i recommended using my other module "@nechlophomeriaa/spotifydl" on NPM | ||
console.log(data) | ||
return data | ||
} | ||
spotifyDownloader("https://open.spotify.com/track/5BqwC9kOBbqYkzdOKeXFFk?si=MIxzvztbQqqOeaPWHvNNzw&context=spotify%3Aalbum%3A28GiIRNu9nEugqnUci3aIC") | ||
|
||
// Threads downloader | ||
async function threadsDownloader(url) { | ||
const data = await downloader.threads(url) | ||
console.log(data) | ||
return data | ||
} | ||
threadsDownloader("https://www.threads.net/@433/post/C8Vj9RjCjzU/?xmt=AQGzeNiQUTut7l437uo6JNnBXItuB-QoeVbUytJcdMVotA") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const { random } = require("../index.js") | ||
|
||
// random pics anime | ||
async function animePics(query) { | ||
if (query === "neko") { | ||
var data = await random.anime.neko() | ||
} else if (query === "waifu") { | ||
var data = await random.anime.waifu() | ||
} else if (query === "shinobu") { | ||
var data = await random.anime.shinobu() | ||
} else { | ||
return "Random anime picture you choose not found" | ||
} | ||
console.log(data) | ||
return data | ||
} | ||
animePics("neko") | ||
|
||
// random gore videos | ||
async function randomGore() { | ||
const data = await random.randomGore() | ||
console.log(data) | ||
return data | ||
} | ||
randomGore() | ||
|
||
// get random hubble images from https://esahubble.org/images | ||
async function hubbleImages() { | ||
const data = await random.hubbleImg() | ||
console.log(data) | ||
return data | ||
} | ||
hubbleImages() | ||
|
||
// get random truth or dare | ||
async function truthOrDare() { | ||
const data = await random.truthOrDare() | ||
console.log(data) | ||
return data | ||
} | ||
truthOrDare() | ||
|
||
// get random tiktok videos from username | ||
async function randomTiktok(username) { | ||
const data = await random.randomTiktok(username) | ||
console.log(data) | ||
return data | ||
} | ||
randomTiktok("nechlophomeria") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
const { search } = require("../index.js") | ||
|
||
// Search / stalking tiktok user profile | ||
async function tiktokProfile(username) { | ||
const data = await search.tiktokStalk(username) | ||
console.log(data) | ||
return data | ||
} | ||
tiktokProfile("nechlophomeria") | ||
|
||
// Jadwal tv | ||
async function jadwalTv(tv) { | ||
const data = await search.jadwalTv(tv) | ||
console.log(data) | ||
return data | ||
} | ||
jadwalTv("mnctv") | ||
|
||
// Search similar songs | ||
async function similarSongs(songs) { | ||
const data = await search.similarSongs(songs) | ||
console.log(data) | ||
return data | ||
} | ||
similarSongs("summer salt fire flower") | ||
|
||
// Find songs by lyrics | ||
async function findSongsByLyrics(lyrics) { | ||
const data = await search.findSongs(lyrics) | ||
console.log(data) | ||
return data | ||
} | ||
findSongsByLyrics("always reminded of the days when you were my cherry lime") | ||
|
||
// search lyrics from title of the songs | ||
async function searchLyrics(query) { | ||
const data = await search.lyrics(query) // if error, change to lyrics2 | ||
console.log(data) | ||
return data | ||
} | ||
searchLyrics("summer salt fire flower") | ||
|
||
// search similar bands | ||
async function similarBands(bands) { | ||
const data = await search.similarBand(bands) | ||
console.log(data) | ||
return data | ||
} | ||
similarBands("jannabi") | ||
|
||
// search / stalk instagram profile | ||
async function instagramProfile(username) { | ||
const data = await search.igStalk2(username) // if error, change to igStalk2 | ||
console.log(data) | ||
return data | ||
} | ||
instagramProfile("nechlophomeria") | ||
|
||
// search movie from website Film Apik | ||
async function searchFilm(query) { | ||
const data = await search.filmApikS(query) | ||
console.log(data) | ||
return data | ||
} | ||
searchFilm("the conjuring") | ||
|
||
// get download link movie from url | ||
async function filmapikDownloader(url) { | ||
const data = await search.filmApikDl(url) | ||
console.log(data) | ||
return data | ||
} | ||
filmapikDownloader("https://filmapik.ing/nonton-film-the-conjuring-the-devil-made-me-do-it-2021-subtitle-indonesia/play") | ||
|
||
// search anime from otakudesu | ||
async function otakudesu(query) { | ||
const data = await search.otakuDesuSearch(query) | ||
console.log(data) | ||
return data | ||
} | ||
otakudesu("kimetsu no yaiba") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const { tools } = require("../index.js") | ||
const fetch = require("node-fetch") | ||
const fs = require("fs") | ||
|
||
// upload files | ||
// example with path | ||
async function uploadFilesViaPath(path) { | ||
const filePath = path // "./folder/to/files" | ||
const buffer = fs.readFileSync(filePath) | ||
const uploadFile = await tools.uploadFile(buffer) | ||
console.log(uploadFile) | ||
return uploadFile | ||
} | ||
uploadFilesViaPath(__dirname + "/image/test.jpg") | ||
|
||
// example with url | ||
async function uploadFilesViaUrl(url) { | ||
const buffer = await fetch(url).then((res) => res.buffer()) | ||
const data = await tools.uploadFile(buffer) | ||
console.log(data) | ||
return data | ||
} | ||
uploadFilesViaUrl("https://avatars.githubusercontent.com/thoriqazzikraa") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters