From bedb8a32b21d9830e64a7d66b42a42e96b46dddc Mon Sep 17 00:00:00 2001 From: yzhh Date: Tue, 4 Aug 2020 00:51:04 +0800 Subject: [PATCH] Update command.py --- command.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/command.py b/command.py index eb9bd04c..8f7a69f1 100644 --- a/command.py +++ b/command.py @@ -30,19 +30,25 @@ async def command(str1,member,group = '0'): z = [] c = '\n' try: - for x in w: - if group == '250500369' or group == '676942198': - z.append(await imarc(x)) - else: - z.append(await im(x)) + if str(w) == '[]': + pass + else: + for x in w: + if group == '250500369' or group == '676942198': + z.append(await imarc(x)) + else: + z.append(await im(x)) except: pass try: - for x in w2: - if group == '250500369' or group == '676942198': - pass - else: - z.append(await imt(x)) + if str(w2) == '[]': + pass + else: + for x in w2: + if group == '250500369' or group == '676942198': + pass + else: + z.append(await imt(x)) except: pass if str(z) =='['']['']' or str(z) == '[][]' or str(z) == '[]':