mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-13 06:00:58 +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):
|
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:
|
try:
|
||||||
return await callback(
|
return await callback(
|
||||||
await self.event_converter.target2yiri(event,self.bot),self
|
await self.event_converter.target2yiri(event,self.bot),self
|
||||||
|
|||||||
Reference in New Issue
Block a user