Giter VIP home page Giter VIP logo

justotodiscord's Introduction

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

justotodiscord's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.