├── .dockerignore ├── .github └── FUNDING.yml ├── .gitignore ├── FAQ.md ├── README.md ├── download.js ├── electron ├── buildResources │ └── icon.png ├── dist │ └── builder-effective-config.yaml ├── index.js └── package.json ├── extension.zip ├── extension ├── images │ ├── 128.jpg │ ├── 128.png │ ├── 16.jpg │ ├── 16.png │ ├── 256.jpg │ ├── 256.png │ ├── 32.jpg │ ├── 32.png │ ├── 48.jpg │ ├── 48.png │ ├── 96.jpg │ ├── 96.png │ ├── icon.png │ ├── logo.png │ └── logo.svg ├── manifest.json ├── popup.html ├── popup.js └── script.js ├── index.html ├── index.js └── package.json /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .vscode/ 3 | test2.js 4 | config.json 5 | npm-debug.log 6 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | patreon: flam3rboy 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | package-lock.json 3 | .vscode/ 4 | test2.js 5 | config.json 6 | npm-debug.log 7 | extension.pem 8 | dist/ 9 | assets/ -------------------------------------------------------------------------------- /FAQ.md: -------------------------------------------------------------------------------- 1 | # FAQ: 2 |
3 | 4 | ### Disclaimer: 5 | - This application is for developers only (if you don't know how to use it, dont use it and don't ask for help). 6 | - We do not offer support in any way. 7 | - This application requires a basic understanding of Discord bots and how to use them, again, don't ask for help. 8 | 9 |
10 | 11 | # Common Errors: 12 | ### most common fixes: 13 | - reload (control + r) 14 | - restart (app & pc) 15 | - reinstall 16 | - use portable version 17 | ## Blank Screen or error message: 18 | - view [Most common fixes](https://github.com/Flam3rboy/discord-bot-client/blob/master/FAQ.md#most-common-fixes) 19 | ## Not able to run App: 20 | - view [Most common fixes](https://github.com/Flam3rboy/discord-bot-client/blob/master/FAQ.md#most-common-fixes) 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![BOT CLIENT](https://s12.directupload.net/images/200907/zcpxtyxp.png) 2 | 3 |
4 |

5 | 6 |

7 | 8 | 9 | | [Download](https://github.com/samuelscheit/discord-bot-client/releases/tag/3.1.0) | [FAQ](https://github.com/samuelscheit/discord-bot-client/blob/master/FAQ.md) | [Tutorial](https://www.youtube.com/watch?v=AmKBFzJOMpY) | 10 | | :---: | :---: | :---: | 11 | 12 |
13 | 14 | --- 15 | 16 | **Discord Bot Client** allows you to use your bot, just like any other user account, except Friends and Groups. 17 | 18 | ### **No longer Maintained** 19 | 20 | --- 21 | ![Features](https://s12.directupload.net/images/200907/9m8qldwi.png) 22 | - **View Guilds** *(Lazy load them)* 23 | - **Manage Guilds** (Name, Image, Audit log, Emoji, Webhooks, Invites, Bans, Widget, Moderation, Roles) 24 | - **Manage Channels** (Add, Delete, Name, Permissions, Invites, Webhooks, Slowmode, NSFW, Topic) 25 | - **Messages** (Send, View History, Embeds, View Reactions, Add/Remove Reactions, Delete, Edit, Pin) 26 | - **Create a Guild** (if the bot has fewer than 10 Servers) 27 | - **Voice Support** 28 | - **See Guild members in the side bar** (you can see them in the server dropdown menu under members) 29 | - **Use Emojis from other servers** (Nitro) 30 | - **GIF Search** 31 | - **Send Files** 32 | - **DM's** (DM's will show up, after a user dms the bot) 33 | 34 | --- 35 | 36 | ![Build](https://s12.directupload.net/images/200907/5j3544ai.png) 37 | 38 | > __You need to install [NodeJS](https://nodejs.org/en/download/).__ Install git or just download the repository as a zip file: 39 | 40 | ```js 41 | git clone https://github.com/samuelscheit/discord-bot-client 42 | cd discord-bot-client/electron 43 | ``` 44 | 45 | > Install all dependencies with ```npm i``` start Bot Client with ```electron .``` 46 | > 47 | 48 | 49 | *Discord Bot Client is **no longer supported** and also no longer updated or maintained.* 50 | -------------------------------------------------------------------------------- /download.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /electron/buildResources/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/electron/buildResources/icon.png -------------------------------------------------------------------------------- /electron/dist/builder-effective-config.yaml: -------------------------------------------------------------------------------- 1 | directories: 2 | output: dist 3 | buildResources: build 4 | mac: 5 | category: public.app-category.social-networking 6 | target: 7 | - dmg 8 | - zip 9 | icon: buildResources/icon.png 10 | linux: 11 | target: 12 | - apk 13 | icon: buildResources/icon.png 14 | win: 15 | target: 16 | - target: nsis 17 | arch: 18 | - x64 19 | - ia32 20 | icon: buildResources/icon.png 21 | electronVersion: 9.1.2 22 | -------------------------------------------------------------------------------- /electron/index.js: -------------------------------------------------------------------------------- 1 | const { app, BrowserWindow, systemPreferences } = require("electron"); 2 | const fetch = require("node-fetch"); 3 | const btoa = require("btoa"); 4 | const fs = require("fs"); 5 | 6 | async function createWindow() { 7 | var html = await fetch("https://raw.githubusercontent.com/Flam3rboy/discord-bot-client/master/index.html"); 8 | // html = fs.readFileSync(__dirname + "/../index.html"); 9 | html = await html.text(); 10 | // Create the browser window. 11 | let win = new BrowserWindow({ 12 | width: 1920, 13 | height: 1080, 14 | icon: __dirname + "/buildResources/icon.png", 15 | webPreferences: { 16 | webSecurity: true, 17 | nodeIntegration: false, 18 | enableRemoteModule: false, 19 | contextIsolation: true, 20 | }, 21 | }); 22 | // win.webContents.openDevTools(); 23 | win.webContents.on("did-navigate", () => { 24 | win.webContents.executeJavaScript(`document.write(atob("${btoa(html)}"))`); 25 | }); 26 | if (systemPreferences && systemPreferences.askForMediaAccess) systemPreferences.askForMediaAccess("microphone"); 27 | win.webContents.on("new-window", function (e, url) { 28 | e.preventDefault(); 29 | require("electron").shell.openExternal(url); 30 | }); 31 | win.loadURL("https://discord.com"); 32 | // win.loadURL("data:text/html;charset=UTF-8," + encodeURIComponent(html), { 33 | // baseURLForDataURL: `file://${__dirname}/app`, 34 | // }); 35 | 36 | const filter = { 37 | urls: [""], 38 | }; 39 | const { session } = win.webContents; 40 | 41 | session.webRequest.onBeforeSendHeaders(filter, (details, callback) => { 42 | if ( 43 | [ 44 | "https://discord.com/api/v9/users/@me/library", 45 | "https://discord.com/api/v9/users/@me/guilds/premium/subscriptions", 46 | "https://discord.com/api/v9/science", 47 | ].includes(details.url) || 48 | details.url.includes("https://discord.com/api/v9/users/@me/billing/trials/") || 49 | details.url.includes("https://discord.com/api/v9/users/@me/applications/") 50 | ) { 51 | return callback({ cancel: true }); 52 | } 53 | if (details.url.startsWith("https://discord.com/assets")) { 54 | details.requestHeaders["User-Agent"] = 55 | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"; 56 | } else { 57 | delete details.requestHeaders["User-Agent"]; 58 | } 59 | 60 | callback({ requestHeaders: details.requestHeaders }); 61 | }); 62 | 63 | session.webRequest.onHeadersReceived(filter, (details, callback) => { 64 | details.responseHeaders["access-control-allow-origin"] = "*"; 65 | details.responseHeaders["content-security-policy"] = "default-src * data: 'unsafe-eval' 'unsafe-inline' blob:"; 66 | 67 | callback({ responseHeaders: details.responseHeaders }); 68 | }); 69 | } 70 | 71 | app.whenReady().then(createWindow); 72 | 73 | app.on("window-all-closed", () => { 74 | if (process.platform !== "darwin") { 75 | app.quit(); 76 | } 77 | }); 78 | 79 | app.on("activate", () => { 80 | if (BrowserWindow.getAllWindows().length === 0) { 81 | createWindow(); 82 | } 83 | }); 84 | -------------------------------------------------------------------------------- /electron/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "discord-bot-client", 3 | "version": "3.1.0", 4 | "description": "Discord Bot Client - login into discord with a bot token", 5 | "main": "index.js", 6 | "scripts": { 7 | "start": "electron index.js", 8 | "pack": "electron-builder --dir -mwl", 9 | "dist": "electron-builder -mwl" 10 | }, 11 | "keywords": [], 12 | "author": { 13 | "name": "Flam3rboy", 14 | "email": "support@botclient.tk" 15 | }, 16 | "repository": { 17 | "url": "https://github.com/Flam3rboy/discord-bot-client/" 18 | }, 19 | "license": "ISC", 20 | "productName": "Discord Bot Client", 21 | "appId": "com.electron.discord-bot-client", 22 | "devDependencies": { 23 | "electron": "^9.1.2", 24 | "electron-builder": "^22.8.0" 25 | }, 26 | "build": { 27 | "mac": { 28 | "category": "public.app-category.social-networking", 29 | "target": [ 30 | "dmg", 31 | "zip" 32 | ], 33 | "icon": "buildResources/icon.png" 34 | }, 35 | "linux": { 36 | "target": [ 37 | "AppImage", 38 | "deb", 39 | "rpm", 40 | "freebsd", 41 | "pacman" 42 | ], 43 | "icon": "buildResources/icon.png" 44 | }, 45 | "win": { 46 | "target": [ 47 | { 48 | "target": "nsis", 49 | "arch": [ 50 | "x64", 51 | "ia32" 52 | ] 53 | } 54 | ], 55 | "icon": "buildResources/icon.png" 56 | } 57 | }, 58 | "dependencies": { 59 | "btoa": "^1.2.1", 60 | "node-fetch": "^2.6.0" 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /extension.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension.zip -------------------------------------------------------------------------------- /extension/images/128.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/128.jpg -------------------------------------------------------------------------------- /extension/images/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/128.png -------------------------------------------------------------------------------- /extension/images/16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/16.jpg -------------------------------------------------------------------------------- /extension/images/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/16.png -------------------------------------------------------------------------------- /extension/images/256.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/256.jpg -------------------------------------------------------------------------------- /extension/images/256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/256.png -------------------------------------------------------------------------------- /extension/images/32.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/32.jpg -------------------------------------------------------------------------------- /extension/images/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/32.png -------------------------------------------------------------------------------- /extension/images/48.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/48.jpg -------------------------------------------------------------------------------- /extension/images/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/48.png -------------------------------------------------------------------------------- /extension/images/96.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/96.jpg -------------------------------------------------------------------------------- /extension/images/96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/96.png -------------------------------------------------------------------------------- /extension/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/icon.png -------------------------------------------------------------------------------- /extension/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/images/logo.png -------------------------------------------------------------------------------- /extension/images/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /extension/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 2, 3 | "name": "Discord Bot Client", 4 | "version": "1.0.0", 5 | "description": "This extension allows you to use https://botclient.tk", 6 | "author": "Flam3rboy", 7 | "background": { 8 | "scripts": ["script.js"] 9 | }, 10 | "permissions": ["webRequest", "webRequestBlocking", ""], 11 | "page_action": { 12 | "default_popup": "popup.html" 13 | }, 14 | "icons": { 15 | "16": "images/16.png", 16 | "32": "images/32.png", 17 | "48": "images/48.png", 18 | "96": "images/96.png", 19 | "128": "images/128.png", 20 | "256": "images/256.png" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /extension/popup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Discord Bot Client 5 | 6 | 7 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /extension/popup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SamuelScheit/discord-bot-client/0242ac3200bcfb4808a56b20aec77625045dee7f/extension/popup.js -------------------------------------------------------------------------------- /extension/script.js: -------------------------------------------------------------------------------- 1 | var extraInfoSpecRequest = ["blocking", "requestHeaders"]; 2 | var extraInfoSpecResponse = ["blocking", "responseHeaders"]; 3 | 4 | if (typeof chrome !== "undefined") { 5 | if (typeof browser !== "undefined") { 6 | var fir = true; 7 | var chr = false; 8 | } else { 9 | var fir = false; 10 | var chr = true; 11 | } 12 | } 13 | if (chr) extraInfoSpecRequest.push("extraHeaders") && extraInfoSpecResponse.push("extraHeaders"); 14 | 15 | chrome.webRequest.onBeforeSendHeaders.addListener( 16 | function (details) { 17 | if (chr) if (details.initiator !== "https://botclient.tk") return; 18 | if (fir) if (!details.originUrl.includes("botclient.tk")) return; 19 | 20 | let header = details.requestHeaders.find((e) => e.name.toLowerCase() === "origin"); 21 | if (header) header.value = "https://discord.com"; 22 | else details.requestHeaders.push({ name: "Origin", value: "https://discord.com" }); 23 | if ( 24 | [ 25 | "https://discord.com/api/v9/users/@me/library", 26 | "https://discord.com/api/v9/users/@me/guilds/premium/subscriptions", 27 | "https://discord.com/api/v9/science", 28 | ].includes(details.url) || 29 | details.url.includes("https://discord.com/api/v9/users/@me/billing/trials/") || 30 | details.url.includes("https://discord.com/api/v9/users/@me/applications/") 31 | ) { 32 | return { cancel: true }; 33 | } 34 | details.requestHeaders = details.requestHeaders.filter((x) => x.name.toLowerCase() !== "user-agent"); 35 | 36 | return { requestHeaders: details.requestHeaders }; 37 | }, 38 | { 39 | urls: [""], 40 | }, 41 | extraInfoSpecRequest 42 | ); 43 | 44 | chrome.webRequest.onHeadersReceived.addListener( 45 | (details) => { 46 | if (chr) if (details.initiator !== "https://botclient.tk") return; 47 | if (fir) if (!details.originUrl.includes("botclient.tk")) return; 48 | 49 | let header = details.responseHeaders.find((e) => e.name.toLowerCase() === "access-control-allow-origin"); 50 | if (header) header.value = "*"; 51 | else details.responseHeaders.push({ name: "Access-Control-Allow-Origin", value: "*" }); 52 | 53 | return { responseHeaders: details.responseHeaders }; 54 | }, 55 | { 56 | urls: [""], 57 | }, 58 | extraInfoSpecResponse 59 | ); 60 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Discord Bot Client 22 | 28 | 29 | 30 | 31 |
32 | 35 | 38 | 62 | 70 | 765 | 766 | 767 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const express = require("express"); 2 | const app = express(); 3 | const fs = require("fs"); 4 | var discordIndexHTML = fs.readFileSync(__dirname + "/index.html", { encoding: "utf8" }); 5 | 6 | app.use("*", async (req, res, next) => { 7 | res.setHeader("access-control-allow-origin", "*"); 8 | next(); 9 | }); 10 | 11 | app.use("/src", express.static(__dirname + "/src")); 12 | 13 | app.use("*", async (req, res) => { 14 | res.send(discordIndexHTML); 15 | }); 16 | 17 | app.listen(3000, () => { 18 | console.log("server listening on :3000"); 19 | }); 20 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "discord-bot-client", 3 | "version": "3.1.0", 4 | "description": "Discord Bot Client - login into discord with a bot token", 5 | "main": "index.js", 6 | "scripts": { 7 | "build": "webpack --progress --colors --watch", 8 | "start": "node index.js", 9 | "electron": "electron electron/electron.js" 10 | }, 11 | "keywords": [], 12 | "author": "Flam3rboy", 13 | "license": "ISC", 14 | "dependencies": { 15 | "express": "^4.17.1" 16 | }, 17 | "devDependencies": { 18 | "@babel/core": "^7.3.4", 19 | "@babel/preset-env": "^7.3.4", 20 | "@babel/preset-react": "^7.0.0", 21 | "@babel/register": "^7.0.0", 22 | "babel-loader": "^8.0.6", 23 | "circular-dependency-plugin": "^5.0.2", 24 | "gulp": "^4.0.0", 25 | "gulp-babel-minify": "^0.5.1", 26 | "gulp-csso": "^3.0.1", 27 | "gulp-rename": "^1.4.0", 28 | "js-beautify": "^1.11.0", 29 | "module": "^1.2.5", 30 | "node-fetch": "^2.6.0", 31 | "timers-browserify": "^2.0.11", 32 | "webpack": "^4.43.0", 33 | "webpack-cli": "^3.3.11" 34 | } 35 | } 36 | --------------------------------------------------------------------------------