0.0.12-fixes

This commit is contained in:
2023-09-11 20:02:29 +03:00
parent 2929c5f58f
commit f16b939d59
14 changed files with 136 additions and 53 deletions

10
bot/state.py Normal file
View File

@@ -0,0 +1,10 @@
class State:
def __init__(self):
self.talking = dict()
def is_talking(self, uid):
return uid in self.talking
def make_talking(self, uid, cid):
self.talking[uid] = cid
def aho(self, uid):
del self.talking[uid]