This file contains hidden or 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
const { Module } = require('../main'); | |
const { saveMessage, getMessage } = require('./database/mongoDB'); // Assuming repo has MongoDB | |
const config = require('../config'); | |
// Store in database instead of memory | |
async function getReactions() { | |
return (await getMessage('status_reactions')) || {}; | |
} | |
async function setReactions(reactions) { |
This file contains hidden or 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
const { bot } = require('../lib/'); | |
const fetch = require('node-fetch'); | |
const fs = require('fs'); | |
const os = require('os'); | |
const path = require('path'); | |
const crypto = require('crypto'); | |
// Configuration - Move to environment variables | |
const config = { | |
egg: "20", |
This file contains hidden or 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
const { bot, getBuffer, jidToNum, genThumbnail } = require('../lib/'); | |
const { VERSION } = require('../config'); | |
const { | |
textToStylist, | |
getUptime, | |
PLUGINS, | |
getRam, | |
addSpace, | |
} = require('../lib/'); | |
const url1 = 'https://files.catbox.moe/peohe8.jpeg'; |
This file contains hidden or 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
const { bot, getBuffer, jidToNum, genThumbnail } = require('../lib/'); | |
const { VERSION } = require('../config'); | |
const { | |
textToStylist, | |
getUptime, | |
PLUGINS, | |
getRam, | |
addSpace, | |
} = require('../lib/'); | |
const url1 = 'https://files.catbox.moe/cso140.jpeg'; |
This file contains hidden or 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
const { bot, getBuffer, jidToNum, genThumbnail } = require('../lib/'); | |
const { VERSION } = require('../config'); | |
const { | |
textToStylist, | |
getUptime, | |
PLUGINS, | |
getRam, | |
addSpace, | |
} = require('../lib/'); | |
const url1 = 'https://files.catbox.moe/6dfqcr.jpeg'; |
This file contains hidden or 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
const { bot, setVar, getVars, forwardOrBroadCast, parsedJid } = require('../lib/'); | |
// Command to set the anti-view-once behavior | |
bot( | |
{ | |
pattern: 'setvv ?(.*)', | |
desc: 'Set anti view once behavior', | |
type: 'whatsapp', | |
}, | |
async (message, match) => { |
This file contains hidden or 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
const { bot } = require('../lib/'); | |
const axios = require('axios'); | |
bot( | |
{ | |
pattern: 'pokemon', |
This file contains hidden or 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
const { bot } = require('../lib/'); | |
const axios = require('axios'); | |
bot( | |
{ | |
pattern: 'pokemon', | |
fromMe: true, | |
desc: 'Sends a random Pokémon card', | |
type: 'fun', | |
}, |
NewerOlder