Skip to content
Open

N #3

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 48 additions & 57 deletions account.dev.txt
Original file line number Diff line number Diff line change
@@ -1,137 +1,128 @@
[
{
"key": "dbln",
"value": "%7B%2261557109594457%22%3A%2238DPiBij%22%7D",
"value": "%7B%22100073264507465%22%3A%22DDg2jWZn%22%2C%2261555839935630%22%3A%22OveXWIky%22%7D",
"domain": "facebook.com",
"path": "/login/device-based/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.564Z",
"lastAccessed": "2024-03-10T08:26:22.564Z"
"creation": "2024-04-04T02:06:45.217Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "datr",
"value": "UffVZZZCuolPGwYIK1YdfYN6",
"key": "sb",
"value": "sMH7ZcLU9ayYUuzahOOfWOk3",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.564Z",
"lastAccessed": "2024-03-10T08:26:22.564Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "sb",
"value": "UffVZTRlBPauz4yChMA4BNJR",
"key": "datr",
"value": "a-8NZpRJ628rx00DxUG7TduA",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "ps_l",
"value": "0",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "ps_n",
"value": "0",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
},
{
"key": "vpd",
"value": "v1%3B662x360x2",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "locale",
"value": "en_US",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "m_pixel_ratio",
"value": "2",
"key": "vpd",
"value": "v1%3B662x360x2",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "fr",
"value": "0758sfviYo6FLoRc2.AWW3xE22lMySq6LZ53NgZwXzFTY.Bl1fdR..AAA.0.0.Bl7VhL.AWWZQrEOFBo",
"key": "c_user",
"value": "61555839935630",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "c_user",
"value": "61557109594457",
"key": "xs",
"value": "8%3AqXQgdK9Y-kK3Sw%3A2%3A1712194694%3A-1%3A7867",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "xs",
"value": "33%3Aw8FYJREv_Wli1g%3A2%3A1710053459%3A-1%3A-1",
"key": "m_page_voice",
"value": "61555839935630",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "m_page_voice",
"value": "61557109594457",
"key": "dpr",
"value": "2.1988937854766846",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "x-referer",
"value": "eyJyIjoiL2NvbmZpcm1lbWFpbC5waHA%2FbmV4dD1odHRwcyUzQSUyRiUyRm0uZmFjZWJvb2suY29tJTJGJTNGcGFpcHYlM0QwJTI2ZWF2JTNEQWZiTUJYVXlPZnI4RWFXSHJTWVZ0b2JCeTNiM1J6aGtVNFZpOTBFQWNnMHdPTXhBQzdtdEdjbWNxUkRNZDM5QkM2ayUyNnd0c2lkJTNEcmRyXzBxMEN5bkl0YzNvbk9NRGowJnBhaXB2PTAmZWF2PUFmYjVzcDJJcTlwek5PNkx6TERaT25UcWZLQXlmRjhvSXhXejZSNmVUQ09Pa2xvcHJmUFFpRGpxem5EaVYtN3VpOTgmc29mdD1oamsiLCJoIjoiL2NvbmZpcm1lbWFpbC5waHA%2FbmV4dD1odHRwcyUzQSUyRiUyRm0uZmFjZWJvb2suY29tJTJGJTNGcGFpcHYlM0QwJTI2ZWF2JTNEQWZiTUJYVXlPZnI4RWFXSHJTWVZ0b2JCeTNiM1J6aGtVNFZpOTBFQWNnMHdPTXhBQzdtdEdjbWNxUkRNZDM5QkM2ayUyNnd0c2lkJTNEcmRyXzBxMEN5bkl0YzNvbk9NRGowJnBhaXB2PTAmZWF2PUFmYjVzcDJJcTlwek5PNkx6TERaT25UcWZLQXlmRjhvSXhXejZSNmVUQ09Pa2xvcHJmUFFpRGpxem5EaVYtN3VpOTgmc29mdD1oamsiLCJzIjoibSJ9",
"key": "wl_cbv",
"value": "v2%3Bclient_version%3A2457%3Btimestamp%3A1712195116",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "wd",
"value": "360x662",
"value": "891x1639",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
},
{
"key": "wl_cbv",
"value": "v2%3Bclient_version%3A2431%3Btimestamp%3A1710053497",
"key": "fr",
"value": "00PeV5yLZMdDviRn8.AWXcUze-NNl23pK5ccckCbNsx_k.BmDe9r..AAA.0.0.BmDgsz.AWVtWsZK6XQ",
"domain": "facebook.com",
"path": "/",
"hostOnly": false,
"creation": "2024-03-10T08:26:22.565Z",
"lastAccessed": "2024-03-10T08:26:22.565Z"
"creation": "2024-04-04T02:06:45.221Z",
"lastAccessed": "2024-04-04T02:06:45.221Z"
}
]
Binary file added omg.mp4
Binary file not shown.
82 changes: 82 additions & 0 deletions scripts/cmds/audio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
module.exports = {
config: {
name: "audio",
version: "1.0",
author: "Jay Senpai",
countDown: 5,
role: 0,
shortDescription: "no prefix",
longDescription: "no prefix",
category: "no prefix",
},
onStart: async function() {},
onChat: async function({ event, message, getLang }) {
if (event.body) {
const word = event.body.toLowerCase();
switch (word) {
case "women":
return message.reply({
body: "「 Women ☕ 」",
attachment: fs.createReadStream("women.mp4"),
});
case "yamate":
return message.reply({
body: "「 Yamate 🥵 」",
attachment: fs.createReadStream("yamate.mp3"),
});
case "dazai":
return message.reply({
body: "「 ahhh~ 」",
attachment: fs.createReadStream("Dazai.mp3"),
});
case "ara":
return message.reply({
body: "「 ara ara 」",
attachment: fs.createReadStream("ara.mp3"),
});
case "good night":
return message.reply({
body: "「 Good Night 🌉 」",
attachment: fs.createReadStream("night.mp3"),
});
case "sus":
return message.reply({
body: "「 sus」",
attachment: fs.createReadStream("sus.mp3"),
});
case "good morning":
return message.reply({
body: "「 Good Morning 🌄 」",
attachment: fs.createReadStream("gm.mp3"),
});
case "yourmom":
return message.reply({
body: "「 Bujis ki nai? 」",
attachment: fs.createReadStream("yourmom.mp3"),
});
case "machikney":
return message.reply({
body: "「 Machikney 」",
attachment: fs.createReadStream("machikney.mp3"),
});
case "randi":
return message.reply({
body: "「 Randi ko Chora 」",
attachment: fs.createReadStream("randi.mp3"),
});
case "sachiin":
return message.reply({
body: "「 GAYY 」",
attachment: fs.createReadStream("sachiin.mp3"),
});
case "omg":
return message.reply({
body: "「 OMG WoW 😳 」",
attachment: fs.createReadStream("omg.mp4"),
});
default:
return;
}
}
},
};
102 changes: 102 additions & 0 deletions scripts/cmds/bard.js
Original file line number Diff line number Diff line change
@@ -1 +1,103 @@
const axios = require('axios');

const geminiApiKey = "AIzaSyAbjU4jXdSrOidULKwAUPloYzgi8kGuUUM";

const chatbot = {
config: {
name: "bard",
version: "2.0",
author: "Cruizex",
description: "Generate Responses using Gemini | Vertex by Google LLMs",
},

async makeGeminiApiRequest(userInput) {
try {
const response = await axios.post(
"https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent",
{
contents: [{
parts: [{
text: userInput
}]
}],
},
{
params: { key: geminiApiKey },
headers: {
'Content-Type': 'application/json',
},
}
);

const generatedText = response.data.candidates[0].content.parts[0].text;
return generatedText;
} catch (error) {
console.error("Error making Gemini API request:", error.message);
throw error;
}
},

async handleCommand({ message, event, args, api }) {
try {
const uid = event.senderID;
const encodedPrompt = encodeURIComponent(args.join(" "));

if (!encodedPrompt) {
return message.reply("Please provide questions");
}

const geminiResponse = await this.makeGeminiApiRequest(encodedPrompt);

message.reply({
body: `${geminiResponse}`,
}, (err, info) => {
global.GoatBot.onReply.set(info.messageID, {
commandName: this.config.name,
messageID: info.messageID,
author: uid,
prompt: encodedPrompt,
response: geminiResponse,
});
});
} catch (error) {
console.error("Error handling command:", error.message);
}
},

onStart: function (params) {
return this.handleCommand(params);
},

onReply: function (params) {
(async () => {
try {
const uid = params.event.senderID;
const context = global.GoatBot.onReply.get(params.messageID);

if (context) {
const { prompt, response } = context;
const newPrompt = `${prompt} ${params.args.join(" ")}`;

const geminiResponse = await this.makeGeminiApiRequest(newPrompt);
global.GoatBot.onReply.set(params.messageID, {
...context,
prompt: newPrompt,
response: geminiResponse,
});

params.message.reply({
body: `${geminiResponse}`,
});
} else {
this.handleCommand(params);
}
} catch (error) {
console.error("Error handling reply:", error.message);
}
})();
},
};

chatbot.onStart();

module.exports = chatbot;
Loading