Coder Social home page Coder Social logo

worldcoin / world-id-discord Goto Github PK

View Code? Open in Web Editor NEW
39.0 12.0 12.0 5.43 MB

Improve your Discord server by verifying unique people with World ID.

Home Page: https://discord.worldcoin.org

License: MIT License

TypeScript 93.13% HTML 0.54% CSS 0.39% JavaScript 5.94%
managed-by-terraform

world-id-discord's Introduction

World ID Discord Bot logo

Discord x Worldcoin

This project is a demonstration of serverless Discord Bot that uses IDKit to verify humans. Verified humans get a special role assigned which can then be used to manage special permissions.

Local development

For local development, you also will need ngrok. After you log in, you can reach the Setup & Installation section. There is an instruction on how to launch and configure ngrok

To create your own bot:

  1. Clone repo.
  2. Run npm install.
  3. Run npm run dev. It will launch the app at http://localhost:3000.
  4. Launch ngrok.
  5. Run ngrok http http://localhost:3000.
  6. After this ngrok shows you your tunneled link in the Forwarding field. It will be something like https://9469-93-87-199-13.eu.ngrok.io.
  7. Go to Discord Developer Portal.
  8. Press the New Application button, set the app name, apply policies, and press Create.
  9. At the INTERACTIONS ENDPOINT URL field paste. <Your NGROK tunneled url>/api/interactions and press Save.
  10. Create a .env.local file in your directory and fill it with envs from .env.local.example.
  11. APPLICATION ID and PUBLIC KEY you can find in the General Information section on Discord Dev Portal.
  12. To get a bot token:
    • go to the Bot section
    • Press Add bot
    • Press Reset Token
    • Token will be visible after this
  13. Go to OAuth2 -> General -> Redirects -> add <localhost or NGROK tunneled address>/api/auth/callback/discord
  14. On the landing page press Install now button.
  15. Install bot.
  16. Try the /verify command.

world-id-discord's People

Contributors

0xpenryn avatar denis-bushaev avatar igorosip0v avatar maxpetretta avatar michaelfurutin avatar paolodamico avatar snyk-bot-wld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

world-id-discord's Issues

Bot installation & multi-tenancy support

The current version of the bot is great for a Discord server, and now pretty easy to deploy! However, in parallel with launching the landing page, we should add support for multi-tenancy (i.e. multi-server) support on a single bot, so that anyone could use our own Discord bot version and easily install from the landing page.

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.