rotki / discord-captcha

Rotki's discord captcha landing page

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@rotki/discord-captcha

Configuration

Create and configure

Create a new discord application.

In the bot settings of your new application make sure to go under Priviledged Gateway Intents and enable SERVER_MEMBERS_INTENT and MESSAGE_CONTENT_INTENT.

Permissions

Make sure the bot has the following permissions:

  • Manage Server
  • Manage Roles
  • Manage Channels
  • Create Instant Invite
  • Create Expressions
  • Mention Everyone

Add the bot to your server

Make sure that your bot is not public. To invite the bot to your server you can use the following link after replacing the placeholders:

https://discord.com/oauth2/authorize?client_id={appId}&permissions={permissions}&scope=b`

For the permissions use the permission calculator in the application bot settings.

Role Addition

You should ensure that the added role is below the bot's role in the Guild's roles settings.

Otherwise, this might cause permission errors even if you have given the MANAGE_ROLES permission to the bot.

Development

Look at the Nuxt 3 documentation to learn more.

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

Check out the deployment documentation for more information.

About

Rotki's discord captcha landing page

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 56.4%Language:Vue 36.3%Language:JavaScript 3.2%Language:Dockerfile 2.4%Language:SCSS 0.9%Language:Shell 0.5%Language:CSS 0.3%