vbot
vbot copied to clipboard
不知道因为更新还是图片太多sendRandom()突然不工作了
gif文件夹存了300多个表情以后 发表情回表情就不工作了。
在index里 直接call Emoticon::sendRandom($message->from['UserName']); 都不工作了。。。
public static function sendRandom($username)
{
$path = static::getPath(static::$folder);
if(is_dir($path)){
$files = scandir($path);
unset($files[0], $files[1]);
if(count($files)){
$msgId = $files[array_rand($files)];
static::send($username, $path . $msgId);
}
}
}
是否表情发送太频繁了,这样会被封一段时间
很奇怪 是机器人停止回复任何表情了。。。 我的主号还能发表情。。。 机器人已经拒绝回复任何人的表情了。。。 是机器人的微信接口呗封了?
经过确认确实是接口被封。