Discord Setup
This guide walks you through everything you need to set up on Discord before running Copycord.
Step 1: Create the clone server
Create a new Discord server that will receive all the mirrored content. This is where your bot will live.
- Open Discord and click the + button in the server list
- Choose Create My Own and select any template
- Give it a name (e.g., "My Clone Server")
Keep the clone server empty — Copycord will create all channels, roles, and emojis automatically.
Step 2: Obtain your user token
The user token allows Copycord's client to read messages from source servers as your Discord account.
Since self-botting violates Discord's Terms of Service, we strongly recommend using an alternate Discord account — not your main account. The alt account must be a member of the source server(s) you want to clone.
How to get your user token
- Open Discord in your web browser (not the desktop app) and log in with the account you want to use
- Press F12 (or Ctrl+Shift+I / Cmd+Option+I) to open Developer Tools
- Enable device emulation mode by pressing Ctrl+Shift+M (or Cmd+Shift+M)
- Go to the Console tab and paste this code:
const iframe = document.createElement('iframe')
console.log(
'Token: %c%s',
'font-size:16px;',
JSON.parse(
document.body.appendChild(iframe).contentWindow.localStorage.token
)
)
iframe.remove()
- Press Enter — your token will appear in the console
- Copy and store this token securely — treat it like a password
Anyone with your user token has full access to your Discord account. Never share it publicly or commit it to version control.
Step 3: Create and configure the bot
The bot token is used by Copycord's server component to manage the cloned server.
Create the bot application
- Go to the Discord Developer Portal
- Click New Application and give it a name (e.g., "Copycord")
- Click Create
Configure the bot
-
In the left sidebar, click Installation
- Set the Install Link to
None - Click Save Changes
- Set the Install Link to
-
In the left sidebar, click Bot
- Click Reset Token and copy the new token — store it securely
- Disable Public Bot (so only you can add it to servers)
- Enable these Privileged Gateway Intents:
- ✅ Presence Intent
- ✅ Server Members Intent
- ✅ Message Content Intent
- Click Save Changes
Invite the bot to your clone server
- In the left sidebar, click OAuth2
- Under OAuth2 URL Generator:
- Scopes: check
bot - Bot Permissions: check
Administrator
- Scopes: check
- Copy the generated URL and open it in your browser
- Select your clone server from the dropdown and click Authorize
Copycord needs to create channels, manage roles, create webhooks, and manage messages. Administrator permission covers all of these. You can use more granular permissions, but Administrator is the simplest and most reliable option.
Summary
At this point you should have:
- ✅ A clone server with the bot added
- ✅ A user token from your alt account (which is a member of source servers)
- ✅ A bot token from the Developer Portal
Next, choose your installation method:
- Docker Install (recommended)
- Manual Install