天气支持私聊
This commit is contained in:
@@ -98,7 +98,7 @@ class WeatherPlugin(MessagePluginInterface):
|
|||||||
bot: WechatAPIClient = message.get("bot")
|
bot: WechatAPIClient = message.get("bot")
|
||||||
|
|
||||||
# 检查权限
|
# 检查权限
|
||||||
if GroupBotManager.get_group_permission(roomid, Feature.WEATHER) == PermissionStatus.DISABLED:
|
if roomid and GroupBotManager.get_group_permission(roomid, Feature.WEATHER) == PermissionStatus.DISABLED:
|
||||||
return False, "没有权限"
|
return False, "没有权限"
|
||||||
|
|
||||||
# 处理消息内容 - 不再使用jieba分词
|
# 处理消息内容 - 不再使用jieba分词
|
||||||
|
|||||||
Reference in New Issue
Block a user