Giter Site home page Giter Site logo

nepxdnep / discord-widget Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noderz/discord-widget

0.0 1.0 0.0 690 KB

Discord widget for your site

Home Page: https://c.titaniumnetwork.org/app/

License: Apache License 2.0

JavaScript 70.71% CSS 14.94% HTML 14.35%

discord-widget's Introduction

discord-proxy

NOTICE: this has been archived and stuff, consider using chatutils..

Node.js app that runs a Discord.js bot

Maintained by Divide#2000 on discord If you spot an issue, bug, or a feature you want added then you can help by adding a new issue in the issues tab Contributions are greatly appreciated. as this is very early in development

Todo List

High priority

  • ???

Normal priority

  • Members list

Low priority

  • Multiple channel support

How do I deploy this?

  1. Visit https://discordapp.com/developers/applications/
  2. Press "New Application" and name it to whatever (e.g. "Swag Message Assistant")
  3. Switch to the bot tab and press "Add Bot"
  4. Press "Copy" under the blue text that says "Click to Reveal Token"
  5. Download the discord-proxy repository and extract to a folder
  6. Open up "config.json" with a text editor and in the token field, select the text "insert bot token" and paste your copied token then save the file
  7. Open a terminal of any sort (CMD or Terminal) and navigate to your folder with app.js in it using the "cd" command
  8. Make sure "node.js" and "npm" are both installed on your platform
  9. Run "npm install"
  10. Open up the "config.json" file once more and in Discord go in settings and under appearance you will find at the bottom "Developer Mode", make sure that is toggled on and if not toggle it. Go to the server you desire to test on and right click any channel and press "Copy ID" and select in the "config.json" file the channel field and replace the big numbers with your clipboard by pasting it into there and save the file
  11. In the discord developer website navigate to your bot and in the "general information" tab select "Copy" under the text "CLIENT ID" and visit https://breadsticks.ga/chatparser/ then paste the client ID into the box that says "CLIENT ID" then press "Generate" and click on the link and select a server to invite it to.
  12. Go to your channel you got your channel id from and press the gears icon on it and go to the Webhooks tab. Click on create webhook and fill in some details and click on "Copy" after the webhook url box. In the config.json file paste this link in the field that says "Insert webhook id 1 here"
  13. Repeat the previous step until the fields that say "Insert webhook id # here" are all filled out and are set to general which would be about 3 times.
  14. Save all changes to config.json.
  15. In a terminal type in "node app.js" and visit http://localhost:8080/ in your browser

Basic rundown

This node app fetches a set of messages in a channel and sends it to the clients to read them and the clients can send a message to the server that will be filtered then the server will fire a webhook with the data to send a message. Run on Repl.it

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.