This app let you send commands from Justo app to Discord specific channel (webhook)
With Nodejs using Express and Discordjs we created a webhook app that holds the Json responses from Justo and send then back to Discord using an standar and basic userbot from that plataform (discord)
-
First of all, we need to clone this repo using
git clone https://github.com/gurkenpoo/JustoToDiscord.git
- Then, lets do some npm i
npm i express npm i node npm i discord.js npm i body-parser npm i nodemon
- Second one, is creating our Discord aplication to get a userBot, go a head to this link, then follow this steps to add the bot into the server you want the integration
-
Once we got our bot, we have to copy our token bot to a file in
/src
calledTOKEN.js
-
And paste it here:
-
Go ahead to
Webhook.js
and set up your Endpoint -
Add the ChannelID that you want to integrate here in
botBrain.js
:Now we are ready to go
-
Lets use nodemon in this instance, go ahead and run:
nodemon src/webhook.js
If its all okay, you should see in the terminal
yourBot#0000 online!
, if you encounter an error, let me know in discord or here (im new) -
Well, now with our bot Online, let's slap it with a
curl
curl -H "Content-Type: application/json" -d @src/exampleData.json localhost:3000/yourEndPoint
If its all okay, look in your discord Channel...is should look like this:
If the imports and modules spam you an error, try to add
"type": "module"
in thepackage.json
if it throws other and more errors, send me a md in discord || contact me to help you or help me
Contributors names and contact info
-
Bastian Poo A.K.A "gurkenpoo" | @gurkenpoo | Discord ID = gurkenpoo#1786
-
Hans Poo | @HansPoo
- 0.0.1
- Initial Release
Im a newbie dev, so if you can help me polishing this proyect i would really appreciate.