去除过程资料
This commit is contained in:
@@ -23,8 +23,6 @@ class BotMusic:
|
|||||||
self.command_format = config["command-format"]
|
self.command_format = config["command-format"]
|
||||||
self.LOG.info(f"[点歌台] 组件初始化完成,指令: {self.command}")
|
self.LOG.info(f"[点歌台] 组件初始化完成,指令: {self.command}")
|
||||||
|
|
||||||
import requests
|
|
||||||
|
|
||||||
def get_music(self, message: WxMsg):
|
def get_music(self, message: WxMsg):
|
||||||
if not self.enable:
|
if not self.enable:
|
||||||
return
|
return
|
||||||
|
|||||||
1
robot.py
1
robot.py
@@ -252,7 +252,6 @@ class Robot(Job):
|
|||||||
# 如果是群消息,并且群没开启AI,则不处理该动作
|
# 如果是群消息,并且群没开启AI,则不处理该动作
|
||||||
if msg.from_group() and self.gbm.get_group_permission(msg.roomid,
|
if msg.from_group() and self.gbm.get_group_permission(msg.roomid,
|
||||||
Feature.AI_CAPABILITY) == PermissionStatus.DISABLED:
|
Feature.AI_CAPABILITY) == PermissionStatus.DISABLED:
|
||||||
self.send_text_msg("群AI功能未开启", msg.roomid, msg.sender)
|
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
if msg.type == 1: # 只处理类型为1的消息提供的问题,引用@不予以对话
|
if msg.type == 1: # 只处理类型为1的消息提供的问题,引用@不予以对话
|
||||||
|
|||||||
Reference in New Issue
Block a user