-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
DARKPOISON-yt
committed
Dec 18, 2021
1 parent
3086204
commit ec5206b
Showing
9 changed files
with
186 additions
and
39 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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# Miyuki-fun | ||
|
||
This package currently gives a random truth or a dare questions (More to come later) | ||
|
||
# Available Functions | ||
|
||
truth, | ||
dare | ||
|
||
# Usage for truth and dare commands | ||
|
||
```js | ||
const miyuki = require('miyuki-fun.js'); | ||
const miyuki = require("miyuki-fun.js"); | ||
const dare = miyuki.dare(); | ||
const truth = miyuki.truth(); | ||
console.log(truth); | ||
console.log(dare); | ||
``` | ||
console.log(dare); | ||
``` |
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 @@ | ||
async function GetAnimalImage(Animal) { | ||
let Animals = [ | ||
"dog", | ||
"cat", | ||
"duck", | ||
"bird", | ||
"panda", | ||
"wolf", | ||
"fox", | ||
"seal", | ||
"llama", | ||
"alpaca", | ||
"camel", | ||
"lizard", | ||
], | ||
res, | ||
json, | ||
Data; | ||
|
||
if (!Animal) { | ||
Animals = Animals[Math.floor(Math.random() * Animals.length)]; | ||
(res = await Fetch( | ||
`https://apis.duncte123.me/animal/${Animals.toLowerCase()}`, | ||
{ | ||
headers: { | ||
"user-agent": | ||
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; PalmSource/hspr-H102; Blazer/4.0) 16;320x320", | ||
}, | ||
} | ||
)), | ||
(json = await res.json()); | ||
|
||
if (!json.data.file) | ||
throw new Error(`Something Went Wrong, Try Again Later!`); | ||
|
||
Data = json.data.file; | ||
|
||
return Data; | ||
} else { | ||
if (!Animals.find((Ani) => Ani === Animal.toLowerCase())) | ||
throw new Error( | ||
`Invalid Animal Provided - ${Animals.map( | ||
(Ani) => Ani.charAt(0).toUpperCase() + Ani.slice(1) | ||
).join(", ")}` | ||
); | ||
(res = await Fetch( | ||
`https://apis.duncte123.me/animal/${Animal.toLowerCase()}`, | ||
{ | ||
headers: { | ||
"user-agent": | ||
"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; PalmSource/hspr-H102; Blazer/4.0) 16;320x320", | ||
}, | ||
} | ||
)), | ||
(json = await res.json()); | ||
|
||
if (!json.data.file) | ||
throw new Error(`Something Went Wrong, Try Again Later!`); | ||
|
||
Data = json.data.file; | ||
return Data; | ||
} | ||
} | ||
|
||
module.exports = { GetAnimalImage }; |
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,16 @@ | ||
async function Chat(Message) { | ||
if (!Message) throw new Error(`No Message`); | ||
if (Message.length > 1900) throw new Error(`Message Limit: 1900`); | ||
|
||
const res = await Fetch( | ||
encodeURI(`https://api.affiliateplus.xyz/api/chatbot?message=${Message}`) | ||
), | ||
json = await res.json(); | ||
|
||
if (!json.message) throw new Error(`Something Went Wrong, Try Again Later!`); | ||
|
||
let Data = json.message; | ||
return Data; | ||
} | ||
|
||
module.exports = { Chat }; |
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 |
---|---|---|
@@ -1,31 +1,58 @@ | ||
const Fetch = require('node-fetch') | ||
const Fetch = require("node-fetch"); | ||
async function Awooify(avatar) { | ||
if (!avatar) throw new Error(`No Image`); | ||
if (!avatar) throw new Error(`No Image`); | ||
|
||
const res = await Fetch(`https://nekobot.xyz/api/imagegen?type=awooify&url=${avatar}`), json = await res.json(); | ||
|
||
if (!json.message) throw new Error(`Something Went Wrong, Try Again Later!`); | ||
return json.message; | ||
}; | ||
const res = await Fetch( | ||
`https://nekobot.xyz/api/imagegen?type=awooify&url=${avatar}` | ||
), | ||
json = await res.json(); | ||
|
||
if (!json.message) throw new Error(`Something Went Wrong, Try Again Later!`); | ||
return json.message; | ||
} | ||
|
||
async function Baguette(avatar) { | ||
if (!avatar) throw new Error(`No Image`); | ||
if (!avatar) throw new Error(`No Image`); | ||
|
||
const res = await Fetch(`https://nekobot.xyz/api/imagegen?type=baguette&url=${avatar}`), json = await res.json(); | ||
|
||
if (!json.message) throw new Error(`Something Went Wrong, Try Again Later!`); | ||
return json.message; | ||
}; | ||
const res = await Fetch( | ||
`https://nekobot.xyz/api/imagegen?type=baguette&url=${avatar}` | ||
), | ||
json = await res.json(); | ||
|
||
if (!json.message) throw new Error(`Something Went Wrong, Try Again Later!`); | ||
return json.message; | ||
} | ||
|
||
async function BlushFact(Message) { | ||
if (Message) throw new Error(`No Message`); | ||
if (Message.length > 1500) throw new Error(`Message Limit: 1500`); | ||
if (Message) throw new Error(`No Message`); | ||
if (Message.length > 1500) throw new Error(`Message Limit: 1500`); | ||
|
||
const res = await Fetch( | ||
`https://nekobot.xyz/api/imagegen?type=fact&text=${encodeURIComponent( | ||
Message | ||
)}` | ||
), | ||
json = await res.json(); | ||
|
||
if (!json.message) throw new Error(`Something Went Wrong, Try Again Later!`); | ||
return json.message; | ||
} | ||
|
||
const res = await Fetch(`https://nekobot.xyz/api/imagegen?type=fact&text=${encodeURIComponent(Message)}`), json = await res.json(); | ||
async function Clyde(options = {}) { | ||
if (!Message) throw new Error(`No Message`); | ||
if (Message.length > 1500) throw new Error(`Message Limit: 1500`); | ||
|
||
if (!json.message) throw new Error(`Something Went Wrong, Try Again Later!`); | ||
return json.message | ||
} | ||
const res = await Fetch( | ||
`https://nekobot.xyz/api/imagegen?type=clyde&text=${encodeURIComponent( | ||
Message | ||
)}` | ||
), | ||
json = await res.json(); | ||
|
||
if (!json.message) throw new Error(`Something Went Wrong, Try Again Later!`); | ||
|
||
module.exports = {Awooify,Baguette,BlushFact} | ||
const Data = json.message; | ||
|
||
return Data; | ||
} | ||
module.exports = { Awooify, Baguette, BlushFact, Clyde }; |
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,8 @@ | ||
async function Gay(Image) { | ||
if (!Image) throw new Error(`No Image (Format: png)`); | ||
|
||
const image = encodeURI(Image); | ||
|
||
const Data = `https://some-random-api.ml/canvas/gay?avatar=${image}`; | ||
return Data; | ||
} |
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,11 @@ | ||
async function ChangeMyMind(Message) { | ||
if (!Message) throw new Error(`No Message`); | ||
if (Message.length > 100) throw new Error(`Message Limit: 100`); | ||
|
||
const Data = encodeURI( | ||
`https://vacefron.nl/api/changemymind?text=${options.Message}` | ||
); | ||
if (!Data) throw new Error(`Something went wrong`); | ||
return Data; | ||
} | ||
module.exports = { ChangeMyMind }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const {truth} =require("./functions/truthordare/truths.js"); | ||
const {dare} =require("./functions/truthordare/dare.js") | ||
const {Awooify,BlushFact,Baguette} = require("./functions/apis/nekobot.js") | ||
module.exports = {truth,dare,Awooify,BlushFact,Baguette} | ||
const { truth } = require("./functions/truthordare/truths.js"); | ||
const { dare } = require("./functions/truthordare/dare.js"); | ||
const { Awooify, BlushFact, Baguette } = require("./functions/apis/nekobot.js"); | ||
module.exports = { truth, dare, Awooify, BlushFact, Baguette }; |