Skip to content

Can I run it without opening Discord? (Node.js) #4

Answered by rigwild
BitMap4 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, this project uses the Discord console as it's easily usable and CORS-friendly.

You could achieve similar functionality using Node.js.


EDIT:

I added this in a gist, just clone it!

git clone https://gist.github.com/6063278cbc9267e7691c084c67176114.git discord-self-bot-console-nodejs
cd discord-self-bot-console-nodejs
npm i

Then, in index.js just add your auth token at the bottom and set if the account is a bot or not. Replace the channel id in the script.

Run with

node index.js

Initialize a project

npm init -y

Install node-fetch

npm i node-fetch@cjs

Copy the script, insert your Discord token at the bottom.

Remove lines related to functions used in browser (the Discord client is a bro…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
4 replies
@BitMap4
Comment options

@rigwild
Comment options

@BitMap4
Comment options

@WoodierCupd
Comment options

Answer selected by rigwild
Comment options

You must be logged in to vote
7 replies
@rigwild
Comment options

@soujiokita
Comment options

@alcat88
Comment options

@rigwild
Comment options

@alcat88
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants