Update Main.py

This commit is contained in:
Vortex 2024-06-29 15:15:48 +05:30 committed by GitHub
parent 0fcdeff043
commit c45d8e1646
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,10 +135,10 @@ def Command(msg, clientid):
else: else:
send(f"You need {tic}{cost_of_command} for that. You have {tic}{have_coins} only.", clientid) send(f"You need {tic}{cost_of_command} for that. You have {tic}{have_coins} only.", clientid)
else: else:
_ba.screenmessage(u"\ue049|| \ue00cCOMMAND NOT FOR KIDS\ue00c ||\ue049", color=(1, 0, 0), transient=True, _ba.screenmessage(u"\ue049|| \ue00cYou can't use this command\ue00c ||\ue049", color=(1, 0, 0), transient=True,
clients=[clientid]) clients=[clientid])
else: else:
_ba.screenmessage(u"\ue049|| \ue00cCOMMAND NOT FOR KIDS\ue00c ||\ue049", color=(1, 0, 0), transient=True, _ba.screenmessage(u"\ue049|| \ue00cYou can't use this command\ue00c ||\ue049", color=(1, 0, 0), transient=True,
clients=[clientid]) clients=[clientid])
@ -159,10 +159,10 @@ def Command(msg, clientid):
else: else:
send(f"You need {tic}{cost_of_command} for that. You have {tic}{have_coins} only.", clientid) send(f"You need {tic}{cost_of_command} for that. You have {tic}{have_coins} only.", clientid)
else: else:
_ba.screenmessage(u"\ue049|| \ue00cCOMMAND NOT FOR KIDS\ue00c ||\ue049", color=(1, 0, 0), transient=True, _ba.screenmessage(u"\ue049|| \ue00cYou can't use this command\ue00c ||\ue049", color=(1, 0, 0), transient=True,
clients=[clientid]) clients=[clientid])
else: else:
_ba.screenmessage(u"\ue049|| \ue00cCOMMAND NOT FOR KIDS\ue00c ||\ue049", color=(1, 0, 0), transient=True, _ba.screenmessage(u"\ue049|| \ue00cYou can't use this commandS\ue00c ||\ue049", color=(1, 0, 0), transient=True,
clients=[clientid]) clients=[clientid])
@ -183,10 +183,10 @@ def Command(msg, clientid):
else: else:
send(f"You need {tic}{cost_of_command} for that. You have {tic}{have_coins} only.", clientid) send(f"You need {tic}{cost_of_command} for that. You have {tic}{have_coins} only.", clientid)
else: else:
_ba.screenmessage(u"\ue049|| \ue00cCOMMAND NOT FOR KIDS\ue00c ||\ue049", color=(1, 0, 0), transient=True, _ba.screenmessage(u"\ue049|| \ue00cYou can't use this command\ue00c ||\ue049", color=(1, 0, 0), transient=True,
clients=[clientid]) clients=[clientid])
else: else:
_ba.screenmessage(u"\ue049|| \ue00cCOMMAND NOT FOR KIDS\ue00c ||\ue049", color=(1, 0, 0), transient=True, _ba.screenmessage(u"\ue049|| \ue00cYou can't use this command\ue00c ||\ue049", color=(1, 0, 0), transient=True,
clients=[clientid]) clients=[clientid])
now = datetime.now() now = datetime.now()
if accountid in pdata.get_blacklist()["muted-ids"] and now < datetime.strptime(pdata.get_blacklist()["muted-ids"][accountid]["till"], "%Y-%m-%d %H:%M:%S"): if accountid in pdata.get_blacklist()["muted-ids"] and now < datetime.strptime(pdata.get_blacklist()["muted-ids"][accountid]["till"], "%Y-%m-%d %H:%M:%S"):