update emmm

This commit is contained in:
SiHuan 2020-06-18 19:25:32 +08:00
parent bd4d617f10
commit 2bba704dd8
2 changed files with 17 additions and 6 deletions

View file

@ -1,5 +1,6 @@
from worker import emmm
def ZZRouter(data):
uid = data['user_id']
gid = data['group_id']
@ -20,4 +21,7 @@ def ZZRouter(data):
Message = Ans.CheckPermission()
if Message == 0:
Message = Ans.GETMSG()
elif Message == -1:
pass
else:
Ans.sendmsg(Message)

View file

@ -1,6 +1,13 @@
from zzcore import StdAns
class Ans(StdAns):
NotAllowGroup = [204097403]
def CheckPermission(self):
if self.gid not in self.NotAllowGroup:
return -1
def GETMSG(self):
if self.parms:
return '咱也不知道' + self.parms[0] + '是啥呢~'