From ab6408e0eb43cb051780205fe70db62e7e3438ac Mon Sep 17 00:00:00 2001 From: jerry Date: Tue, 12 Jun 2018 13:35:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E4=BA=86=E7=AC=AC=E4=B8=80=E4=B8=AAsi?= =?UTF-8?q?ngle-ws=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cqbot/item/Group.php | 19 ++----------------- src/cqbot/mods/Admin.php | 3 --- src/cqbot/mods/Example.php | 3 +++ 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/src/cqbot/item/Group.php b/src/cqbot/item/Group.php index 23ecd2fa..a98f8ed9 100644 --- a/src/cqbot/item/Group.php +++ b/src/cqbot/item/Group.php @@ -10,13 +10,13 @@ class Group { private $group_id; private $group_name; - private $prefix; + //private $prefix; private $members = []; public function __construct($group_id, $info) { $this->group_id = $group_id; $this->group_name = $info["group_name"]; - $this->prefix = $info["prefix"]; + //$this->prefix = $info["prefix"]; $member_list = $info["member"]; $this->members = []; foreach ($member_list as $k => $v) { @@ -38,13 +38,6 @@ class Group return $this->group_name; } - /** - * @return mixed - */ - public function getPrefix() { - return $this->prefix; - } - /** * @return array */ @@ -67,14 +60,6 @@ class Group $this->group_name = $group_name; } - /** - * set自定义群称号的方法 - * @param mixed $prefix - */ - public function setPrefix($prefix) { - $this->prefix = $prefix; - } - /** * set群成员的类 * @param array $members diff --git a/src/cqbot/mods/Admin.php b/src/cqbot/mods/Admin.php index a4193b65..97b74a69 100755 --- a/src/cqbot/mods/Admin.php +++ b/src/cqbot/mods/Admin.php @@ -47,9 +47,6 @@ class Admin extends ModBase if(Buffer::in_array("su", $user)) Buffer::unsetByValue("su", $user); $this->reply("removed operator $user"); return true; - case "test": - $this->reply("Hello world"); - return true; } return false; } diff --git a/src/cqbot/mods/Example.php b/src/cqbot/mods/Example.php index 18ef7dc4..ee9e3c7c 100644 --- a/src/cqbot/mods/Example.php +++ b/src/cqbot/mods/Example.php @@ -19,6 +19,9 @@ class Example extends ModBase case "ping": $this->reply("pong"); return true; + case "test": + $this->reply("Hello world"); + return true; } return false; }