Skip to content

Commit

Permalink
ⒸBloomBot by Magneum™ 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
magneum committed May 31, 2023
1 parent f52fa90 commit 55c50b2
Show file tree
Hide file tree
Showing 319 changed files with 42,507 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .codesandbox/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:latest
RUN apt-get update && apt-get install -y jq git curl wget ffmpeg bpm-tools opus-tools python3-pip python-is-python3
RUN curl -s deb.nodesource.com/setup_18.x | bash
RUN apt-get update && apt-get install nodejs -y
RUN npm install -g spotify-dl spdl-core forever pm2 yarn corepack && hash -r
RUN git clone github.com/magneum/BloomBot
RUN cd BloomBot
WORKDIR /BloomBot
RUN git init --initial-branch=magneum
RUN git fetch origin magneum
RUN git reset --hard origin/magneum
RUN yarn install
CMD [ "yarn", "run", "start" ]
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
json.sqlite
*.yarnrc.yml
process.js
*.pnp.cjs
*.vscode
scraper
*.next
*.yarn
*.env
*.log
*.db
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: ""
directory: "/"
schedule:
interval: "daily"
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
json.sqlite
*.yarnrc.yml
process.js
*.pnp.cjs
*.vscode
scraper
*.next
*.yarn
*.env
*.log
*.db
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
json.sqlite
*.yarnrc.yml
process.js
*.pnp.cjs
*.vscode
scraper
*.next
*.yarn
*.env
*.log
*.db
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//.npmrc file
engine-strict = true
131 changes: 131 additions & 0 deletions BloomBot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
// ╔◎☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱[ ⒸBloomBot by Magneum™ ]☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱◎"
// ║⧉༻ 🤖𝐁𝐥𝐨𝐨𝐦𝐁𝐨𝐭🌻𝐌𝐮𝐥𝐭𝐢-𝐃𝐞𝐯𝐢𝐜𝐞🤖
// ║ IS A WHATSAPP USER-BOT WITH AUTOMATION, MODERATION, MUSIC, GAMES AND MORE OF 200+ COMMANDS!
// ║
// ║🌟 A versatile whatsApp multi-purpose bot designed for group management and user convenience.
// ║🚀 Simplifies group management tasks and enhances the overall user experience.
// ║⚠️ Please note: Engaging in spamming activities may lead to account suspension. Use responsibly!
// ║🎉 BloomBot is intended for fun and convenience, but we're not responsible for account bans.
// ║🔀 forking the repository is allowed, but customized versions or modified plugins are unsupported.
// ║⚠️ Exercise caution and take responsibility for any modifications made to the bot.
// ║📞 Need assistance or have issues? Contact our developers at +918436686758 and +918250889325.
// ║🔄 We'll continue providing updates and support for the original version of the bot.
// ║👉 Enjoy the features and functionality of BloomBot responsibly! Make the most out of your
// ║ whatsApp group management experience! 🎉
// ║
// ║🐞 Developers: +918436686758, +91825088932593259325
// ╚◎☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱[ ⒸBloomBot by Magneum™ ]☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱☱◎"
require("./config");
const fs = require("fs");
const chalk = require("chalk");
const yargs = require("yargs");
const { join } = require("path");
const { say } = require("cfonts");
const mFolders = fs.readdirSync("./routes");
const { createInterface } = require("readline");
const { watchFile, unwatchFile } = require("fs");
const { setupMaster, fork } = require("cluster");
const rl = createInterface(process.stdin, process.stdout);

process.env.NODE_NO_WARNINGS = "1";
process.removeAllListeners("warning");
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
process.on("uncaughtException", (error) => {
logger.error(error);
});
require("events").EventEmitter.prototype._maxListeners = 0;
say("BloomBot\nwhatsApp Multi Device\nUser bot", {
font: "chrome",
align: "center",
gradient: ["red", "yellow"],
});
say(`~ by Magneum™`, {
font: "console",
align: "center",
gradient: ["green", "red"],
});

function showCommands(path) {
say("Loading Commands From Folders", {
font: "console",
align: "left",
gradient: ["red", "blue"],
});
const specialFolders = [
"⚙️System",
"⭕YTFilter",
"🍁ᴏᴡɴᴇʀ",
"🍑Hentai",
"🐉Emotions",
"👅NSFW",
"💗Commands",
"💰Games",
"📢aFilter",
"📥Downloader",
"📼Conversion",
"🔎Searches",
"🔰Group",
"🖼️Photogenic",
"🦄SFW",
];
for (const cFolder of mFolders) {
const cFiles = fs
.readdirSync(`./${path}/${cFolder}`)
.filter((cFile) => cFile.endsWith(""));

if (specialFolders.includes(cFolder)) {
console.log(
chalk.bgGreen(chalk.black("> " + cFolder)),
chalk.yellow(" | " + cFiles)
);
}
}
}

let isRunning = false;
function ignite(cFile) {
if (isRunning) return;
isRunning = true;
const args = [join(__dirname, cFile), ...process.argv.slice(2)];
setupMaster({
exec: args[0],
args: args.slice(1),
});
const p = fork();
p.on("message", (data) => {
console.log(chalk.bgGreen(chalk.black("[RECEIVED]")), chalk.yellow(data));
switch (data) {
case "reset":
p.process.kill();
isRunning = false;
ignite.apply(this, arguments);
break;
case "uptime":
p.send(process.uptime());
break;
}
});
p.on("exit", (_, code) => {
isRunning = false;
console.error(chalk.bgRed("❌ An unexpected error occurred:" + _));
p.process.kill();
isRunning = false;
ignite.apply(this, arguments);
if (code === 0) return;
watchFile(args[0], () => {
unwatchFile(args[0]);
ignite(cFile);
});
});
const opts = yargs(process.argv.slice(2)).exitProcess(false).parse();
if (!opts["test"]) {
if (!rl.listenerCount()) {
rl.on("line", (line) => {
p.emit("message", line.trim());
});
}
}
}

showCommands("routes");
ignite("app/index", "uptime");
Loading

0 comments on commit 55c50b2

Please sign in to comment.