- Notifications
You must be signed in to change notification settings - Fork69
Powering Discord content discovery by making web pages from threads for some of the largest servers, including Valorant, Cloudflare, C#, and Nuxt.
License
AnswerOverflow/AnswerOverflow
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Thank you for your interest in contributing to Answer Overflow! If you need any help, please reach out in ourDiscord!
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 !
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 MembersMessage Content
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 ServerCreate Instant InviteRead Messages/View ChannelsSend MessagesCreate Public ThreadsSend Messages in ThreadsManage ThreadsEmbed LinksRead Message HistoryAdd ReactionsUse Slash Commands
When you're done, it should look like this:
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.
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
# in project root directorybun runtest# to test an individual package:cd [apps|packages]/[package_name] bun test:watch
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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.

