Closed sudoskys closed 3 months ago
The changes primarily introduce a logout functionality across different messaging platforms (Discord, Kook, Slack, Telegram) within the application. This involves adding new commands to clear user credentials, enhancing user authentication and security. Various files were updated to incorporate the /logout
command, ensuring consistent behavior across all platforms.
Files | Change Summary |
---|---|
app/sender/discord/__init__.py |
Added listen_logout_command function to handle logout functionality. |
app/sender/discord/event.py |
Updated /login command to set credential and introduced /logout command. |
app/sender/kook/__init__.py |
Added logout function and listen_logout_command to handle logout functionality. |
app/sender/kook/event.py |
Updated /login command to set credentials and introduced /logout command. |
app/sender/slack/__init__.py |
Added listen_logout_command function to handle /logout command. |
app/sender/slack/event.py |
Added /logout command in the help message. |
app/sender/telegram/__init__.py |
Added listen_logout_command and updated listen_help_command for better formatting. |
app/sender/telegram/event.py |
Updated command list structure and added /logout command. |
app/sender/util_func.py |
Added logout function to handle user logout by updating credentials and sending success message. |
sequenceDiagram
participant User
participant DiscordBot
participant KookBot
participant SlackBot
participant TelegramBot
participant AuthService
User ->> DiscordBot: /logout
DiscordBot ->> AuthService: clear credentials
AuthService -->> DiscordBot: success
DiscordBot -->> User: Logout success
User ->> KookBot: /logout
KookBot ->> AuthService: clear credentials
AuthService -->> KookBot: success
KookBot -->> User: Logout success
User ->> SlackBot: /logout
SlackBot ->> AuthService: clear credentials
AuthService -->> SlackBot: success
SlackBot -->> User: Logout success
User ->> TelegramBot: /logout
TelegramBot ->> AuthService: clear credentials
AuthService -->> TelegramBot: success
TelegramBot -->> User: Logout success
This sequence diagram illustrates the interaction between the user and the different bots (Discord, Kook, Slack, Telegram) when the /logout
command is issued, showing the flow of clearing credentials and confirming the logout success.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
/logout
- clear credential