Skip to content

Commit

Permalink
Update botchat_db.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoptg committed Feb 2, 2024
1 parent 53e50ac commit 8724b61
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyUltroid/dB/botchat_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ def get_who(msg_id):
if ok.get(msg_id):
return ok[msg_id]

def get_tag_stuff():
return udB.get_key("TAG_LOGGER") or {}

def tag_add(msg, chat, user):
ok = get_tag_stuff()
ok = get_stuff()
if not ok.get("TAG"):
ok.update({"TAG": {msg: [chat, user]}})
else:
ok["TAG"].update({msg: [chat, user]})
return udB.set_key("TAG_LOGGER", ok)
return udB.set_key("BOTCHAT", ok)


def who_tag(msg):
Expand Down

0 comments on commit 8724b61

Please sign in to comment.