Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Powering Discord content discovery by making web pages from threads for some of the largest servers, including Valorant, Cloudflare, C#, and Nuxt.

License

NotificationsYou must be signed in to change notification settings

AnswerOverflow/AnswerOverflow

Repository files navigation

Thank you for your interest in contributing to Answer Overflow! If you need any help, please reach out in ourDiscord!

VSCode users

There is a workspace file called answeroverflow.code-workspace, VSCode lets you open this folder as that workspace and it is recommended that you do your development work inside of this workspace as it will configure all of the settings for you

! The workspace is set to hide all "useless" files (i.e node_modules) if you for some reason need to access them, comment out the line hiding them in the workspace file !

Setting up your Developer Bot

Head to theDiscord Developer Portal, and create a new application (call it something like "AO Dev Test"), and optionally a testing server in Discord.

In the portal, click "Bot" and add a bot.

Enable the following intents:

  • Server Members
  • Message Content
Bot Intents Settings

You'll also want to copy your token, and save it someplace safe (like GitHub Secrets).

Next, inOAuth2->General, you'll want to grab your Client ID and Client Secret for safekeeping as well.

Add a redirect, and point it tohttp://localhost:3000/api/auth/callback/discord (if you're hosting on a VPS with Remote Environment, use your VPS IP in place of localhost)

Change the authorization method to "In-app Authorization", checking thebot andapplications.commands scopes.

You'll want to enable the following bot permissions:

  • Manage Server
  • Create Instant Invite
  • Read Messages/View Channels
  • Send Messages
  • Create Public Threads
  • Send Messages in Threads
  • Manage Threads
  • Embed Links
  • Read Message History
  • Add Reactions
  • Use Slash Commands

When you're done, it should look like this:

OAuth2 Settings

You can then generate a link fromOAuth2->URL Generator using thebot andapplications.commands, with the same permissions.

Replace your ID in this link:https://discord.com/oauth2/authorize?client_id=YOUR_ID&permissions=328565083201&scope=bot+applications.commands

Or use theDiscord Permissions Calculator.

Add your bot to the server with the link and begin testing from your development machine.

Get it running

Copy the .env.example file in the root directory and create a new file titled .env

Follow the steps listed in .env.example to properly configure your environment variables

# in project root directorybun icd packages/core&& bun db:pushcd packages/core&& db:wipebun dev

Testing

# in project root directorybun runtest# to test an individual package:cd [apps|packages]/[package_name] bun test:watch

Building

bun run build

About

Powering Discord content discovery by making web pages from threads for some of the largest servers, including Valorant, Cloudflare, C#, and Nuxt.

Topics

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors17

Languages


[8]ページ先頭

©2009-2025 Movatter.jp