Skip to content

Integration for Justo and Discord, be able to send Justo orders to Discord specific channel

Notifications You must be signed in to change notification settings

gurkenpoo/JustoToDiscord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Justo to Discord

This app let you send commands from Justo app to Discord specific channel (webhook)

Description

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)

Getting Started

Dependencies

  • 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

Installing

  • Once we got our bot, we have to copy our token bot to a file in /src called TOKEN.js

    tokenbot Just press "reset"

  • And paste it here:

    tokenbot

Running our App in localhost (to test it)

  • Go ahead to Webhook.js and set up your Endpoint

    imagen

  • Add the ChannelID that you want to integrate here in botBrain.js:

    imagen

    Now we are ready to go

TEST!

  • 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:

    prueba02

Help

If the imports and modules spam you an error, try to add "type": "module" in the package.json

if it throws other and more errors, send me a md in discord || contact me to help you or help me

Authors

Contributors names and contact info

  • Bastian Poo A.K.A "gurkenpoo" | @gurkenpoo | Discord ID = gurkenpoo#1786

  • Hans Poo | @HansPoo

Version History

  - 0.0.1
   - Initial Release

PS

Im a newbie dev, so if you can help me polishing this proyect i would really appreciate.

Inspirations and Documentation

About

Integration for Justo and Discord, be able to send Justo orders to Discord specific channel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published