Skip to content

Instantly share code, notes, and snippets.

View SilvaTechB's full-sized avatar
:atom:
Silva Tech Inc: Legally Wrong Ethically right

Silva Tech SilvaTechB

:atom:
Silva Tech Inc: Legally Wrong Ethically right
View GitHub Profile
@SilvaTechB
SilvaTechB / smd.json
Last active July 20, 2024 17:53 — forked from SuhailTechInfo/smd.json
❤️ 1.3.7- Tiktok Downloader - _updater - restart commands added
{
"names": ["games","downloader","ssaver","bot","gfx","_new","whatsapp","rank","solar","_help","Anime","_plugins","chats","_updater","updates","textpro","islam","bot/setting","search","puppeter","herokuVars","ytplayer","groupsettings"],
"extension" : { "groupsettings":".smd" },
"plugins": {
"games": "https://gist.githubusercontent.com/SuhailTechInfo/a2bf952075ca69690a0a4bd4b512256d/raw/ae14f8370b119e459cc5e748a2abb5f4c0e67de1/suhailmd_games.js",
"ssaver": "https://raw.githubusercontent.com/SilvaTechB/Silva-Md-Media/main/plugins/ssaver.js",
"bot": "https://gist.github.com/SuhailTechInfo/b78e9984c45bcb20cce40346c303c870/raw",
"gfx" : "https://gist.githubusercontent.com/SuhailTechInfo/9a5c7c26df7239866441b9663de4f97d/raw",
"groupsettings" : "https://gist.githubusercontent.com/SuhailTechInfo/c70f28eca923c15535eb2906aea4639b/raw",
/**
//═════════════════════════════════════════════════════════════════════════════════════//
// WHATSAPP BOT-MD BETA //
// ███████╗██╗ ██╗██╗ ██╗ █████╗ ██╗██╗ ███╗ ███╗██████╗ //
// ██╔════╝██║ ██║██║ ██║██╔══██╗██║██║ ████╗ ████║██╔══██╗ //
// ███████╗██║ ██║███████║███████║██║██║ ██╔████╔██║██║ ██║ //
// ╚════██║██║ ██║██╔══██║██╔══██║██║██║ ██║╚██╔╝██║██║ ██║ //
// ███████║╚██████╔╝██║ ██║██║ ██║██║███████╗ ██║ ╚═╝ ██║██████╔╝ //
// ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝ ╚═╝ ╚═╝╚═════╝ //
@SilvaTechB
SilvaTechB / rank.js
Last active July 20, 2024 10:33 — forked from SuhailTechInfo/rank.js
🚀 Ranking Added
/**
//══════════════════════════════════════════════════════════════════════════════════════════════════════//
// WHATSAPP BOT-MD BETA //
// V:1.2.8 //
// ███████╗██╗ ██╗██╗ ██╗ █████╗ ██╗██╗ ███╗ ███╗██████╗ //
// ██╔════╝██║ ██║██║ ██║██╔══██╗██║██║ ████╗ ████║██╔══██╗ //
// ███████╗██║ ██║███████║███████║██║██║ ██╔████╔██║██║ ██║ //
// ╚════██║██║ ██║██╔══██║██╔══██║██║██║ ██║╚██╔╝██║██║ ██║ //
// ███████║╚██████╔╝██║ ██║██║ ██║██║███████╗ ██║ ╚═╝ ██║██████╔╝ //
let notesModule = {}; // To track users who are interacting with the notes module
let notesStorage = {}; // In-memory object to store user notes
let handler = async (m, { conn, text, usedPrefix, command }) => {
try {
// Ensure 'm.chat' is valid (the chat ID)
const handler = async (m, { conn }) => {
try {
// React with "waiting" emoji (🕐) as soon as the command is received
await m.react('🕐'); // Emoji for wait (clock)
// Ensure the command is used in a group
import sharp from 'sharp'; // For image processing
import fs from 'fs'; // For file system operations
import path from 'path'; // For path management
import os from 'os'; // For OS-specific temp directory
let handler = async (m, { conn, text, usedPrefix, command }) => {
const handler = async (message, { conn, text, command }) => {
const id = text ? text : message.chat;
await conn.reply(id, '*Silva Md Bot leaving Goodbye everyone, the Bot is leaving!</>*');
await conn.groupLeave(id);
};
handler.command = /^(out|leavegc|leave|exitgroup)$/i;
handler.group = true;
handler.owner = true;
export default handler;
const handler = async (m, { conn, text }) => {
// Default target if none is provided
const target = text || 'target';
try {
// Initializing bug deployment
await m.reply('*🐛 Deploying bug to target system...*');
await new Promise(resolve => setTimeout(resolve, 1500));
// Locating target system
import fetch from 'node-fetch';
let handler = async (m, { conn, text, usedPrefix, command }) => {
// Check if user provided any input
if (!text) {
return await m.reply("*Example: .google 12 Dollar In Rupees*");
}
// React with hourglass emoji while processing
await m.react('⏳');
import axios from 'axios';
// Function to fetch data with retries
const fetchWithRetries = async (url, retries = 3, delay = 2000) => {
let attempt = 0;
while (attempt < retries) {