Hello! This is a simple script I made in like 4 hours for demonstration of HTTP Communication between Discord.API with the HTML. It will make you to be able to anyone but as a bot.
- Run the server
node server.js
- Take your Discord Bot token and put it in the Bot Token input. If you don't know how to fetch your Discord bot token, you can search it in the internet.
- Provide the Channel ID or the DM ID (it also work for DM) you want to talk in.
- User to reply simply ping the user (optional)
- Provide something in the "Text to Say:" text area.
- You can also provide an Image URL to send
- You could also reply to a recent message (100 recent messages) (optional) or simply enter the message id you want to reply.
- Send message
- Clone the repository:
git clone https://github.com/3oFiz4/HTMLxDiscord.js.git
- Navigate to the Project Folder:
cd HTMLxDiscord.js
- Install Dependencies:
npm install express body-parser discord.js
- Navigate to the Project's source:
cd source
- Run server.js:
node server.js
[X] Provideable BOT token
[X] Channel ID with a working server name
[X] Ping User
[X] Working text
[O] Send Image URL, from PC or from clipboard (partially done)
[X] Reply to Recent messages
[ ] Improve UI