mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
fix: bot user id in slack
This commit is contained in:
@@ -158,7 +158,10 @@ class SlackAdapter(adapter.MessagePlatformAdapter):
|
||||
],
|
||||
):
|
||||
async def on_message(event:SlackEvent):
|
||||
self.bot_account_id = "SlackBot"
|
||||
if self.bot.bot_user_id:
|
||||
self.bot_account_id = self.bot.bot_user_id
|
||||
else:
|
||||
self.bot_account_id = 'SlackBot'
|
||||
try:
|
||||
return await callback(
|
||||
await self.event_converter.target2yiri(event,self.bot),self
|
||||
|
||||
Reference in New Issue
Block a user