- Node v16.15.x
- Discord Selfbot Credentials
- Google API Service Account Credentials
- Install node js from https://nodejs.org/en/download/ for your platform
- Unzip project folder. Open terminal/console. Run ‘npm install’ command.
Create a .env
file in the project root, here we'll add all our credentials needed for our bot to work
CLIENT_TOKEN = '<DISCORD BOT TOKEN>' # //user auth token for the self bot
BOT_CHANNEL = '<DISCORD CHANNEL ID>' # // channel to send the messages
# PLEASE DON'T TOUCH
BOT_COMMAND = 'imagine' # imagine command for the bot
BOT_ID = '936929561302675456' # // unique id of Midjourney Bot
# GOOGLE API SETUP
DRIVE_FOLDER_ID = '<DRIVE FOLDER ID>' # // id of the folder, service account should be editor
- Assign your user token to CLIENT_TOKEN variable from /utils/variables.js file. (https://www.androidauthority.com/get-discord-token-3149920/)
- Assign channel id with the bot (it can be DM or channel on your own server) to BOT_CHANNEL variable from /utils/variables.js file. (The last part of any web link, like https://discord.com/channels/@me/101463260890005xxxx). 101463260890005xxxx - channel id.
- Create Google API project.
- Add Google Drive and Google Spreadsheets API.
- Create Service account, grant owner permission and generate JSON key.
- Download the key and place it into the root folder with
creds.json
name. - Add new values to the Variables file.
- Add service account as to the folder.
- Run
npm start
command to start the server.
- Build Docker Image using the following command:
docker build -t mj-self-bot .
- Run Docker Image Container with:
docker run -it -p 8000:3000 mj-self-bot
This can be useful in a future for deployments in different environments:)
Santb Any issue or any support needed feel free to contact me on any channel.