-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Discord OAuth Flow #1129
Merged
Merged
Changes from 25 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
e16bac3
Implemented Discord OAuth Flow && a Discord bot with creating public …
AveryYay 2307a7d
Apply suggestions from code review
AveryYay c7f04d1
Integrated OAuth flow into discord_app.py
AveryYay 0938fb1
Added init for camel.bots.discord
AveryYay 548c52e
Delete examples/bots/discord_OAuth_flow.py
AveryYay 6db7ba0
Deleted unnecessary import in camel.bots.discord.__init__.py
AveryYay 5350d8a
Updated OAuth in DiscordApp
AveryYay 87f255f
Merge branch 'camel-ai:master' into master
AveryYay 62a2f51
Style fix && deleted the example discord bot
AveryYay ba84a25
minor fix
AveryYay 67c55ed
Fixed oauth redirect logic
AveryYay 23da0ba
Changed permission data type
AveryYay 940188f
Merge branch 'master' into master
Wendong-Fan b414ec6
Preliminary implementation of Discord OAuth flow
AveryYay 800ede5
Merge remote-tracking branch 'origin/master'
AveryYay 4ca2ee8
Changed the installation storage handling to aiosqlite && Added Disco…
AveryYay 6ff54a6
pre-commit fixes
AveryYay 9354dee
Resolved conflicts and merge
AveryYay a6b9aae
Merge branch 'camel-ai-master' (resolved conflicts)
AveryYay 04e5d71
Pre-commit: license updated
AveryYay d044166
Merge branch 'camel-ai:master' into master
AveryYay 327b271
Merge branch 'master' into master
Wendong-Fan c598730
Added an example of the new discord bot with the updated discord inst…
AveryYay bb8f3e4
Merge remote-tracking branch 'origin/master'
AveryYay bc51e22
Fixed some mypy error
AveryYay 41e4711
Example added
AveryYay c53fe0c
Added aiosqlite to poetry lock
AveryYay 61280bd
Merge branch 'master' into master
AveryYay 8b7bd0e
modified poetry lock
AveryYay 7160208
Added discord intents as a parameter && minor style change
AveryYay 250cbc9
Merge branch 'tmp'
AveryYay e3bbece
Updated poetry
AveryYay 4047229
Cleaned license && deleted unused discord_app.py
AveryYay 2fc8364
Added docstring for DiscordInstallation
AveryYay e5be892
pre-commit
AveryYay dd166b7
Switched logger && pre commit
AveryYay 28b9096
Merge branch 'tmp'
AveryYay 6f720c5
Updated poetry lock
AveryYay db686de
Added error handling in exchange_code_for_token_response
AveryYay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. ========= | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. ========= | ||
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. =========== | ||
# Licensed under the Apache License, Version 2.0 (the “License”); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. clean |
||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an “AS IS” BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. =========== | ||
from .discord_app import DiscordApp | ||
from .discord_installation import DiscordInstallation | ||
from .discord_store import ( | ||
DiscordBaseInstallationStore, | ||
DiscordSQLiteInstallationStore, | ||
) | ||
|
||
__all__ = [ | ||
"DiscordApp", | ||
"DiscordInstallation", | ||
"DiscordSQLiteInstallationStore", | ||
"DiscordBaseInstallationStore", | ||
] |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check and clean the license info