This repository was archived by the owner on Mar 22, 2024. It is now read-only.
Discord Auth link with user, Linking of discordserver with project, Webhook and invitelink - #95
Merged
Merged
Conversation
# Conflicts: # src/routes/web.js
# Conflicts: # src/routes/web.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/ressources/views/projects/services/discord.ejs holds the frontend and is handled by src/app/Http/Discordcontroller.js
discord.ejs also has a frontend script in public/scripts/discordAuth.js and is accesed by the route /discord
Together they currently provide an auth link the user can use to link discord with their projecthub account. Then they can click another link to create a discord server based on a template. Then they can click another link to add the discordbot to the server. The discordbot runs from src/discord and has the handler GuildCreateHandle.js for when it gets invited to a discordserver. The bot asks which projecthub project the user want to add the discordserver to and links discordserver, webhook and invitelink with the projecthub project.
Finally with a project linked a 4th link on the website will now appear with the invitelink provided.
Resolves #7