A command-line interface for Discord that lets you send direct messages to friends from your terminal.
- Go 1.21 or later
- A Discord user token
- Copy
.envand fill in your token:
DISCORD_TOKEN=your_token_here
- Run the program:
go run .If DISCORD_TOKEN is set in your environment, the prompt is skipped automatically.
Open Discord in a browser, press F12 to open DevTools, go to the Console tab, and run:
window.webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]);m.find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken()The output is your token.
| Command | Description |
|---|---|
friends |
List all friends |
send <username> <message> |
Send a DM to a friend |
help |
Show available commands |
exit |
Quit |
> friends
Username Display Name
----------------------------------------
mrfrost0 Frost
> send mrfrost0 hello
Sent to mrfrost0: hello
Using a user token for automation violates Discord's Terms of Service. Use this tool for personal, non-automated use only.