From b86da919325c8d6be8bf37f6ba94ccff3d12c356 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 9 Dec 2024 08:25:16 +0300 Subject: [PATCH] add some info in code --- ubot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubot.py b/ubot.py index 76d4e3e..8311554 100644 --- a/ubot.py +++ b/ubot.py @@ -51,6 +51,7 @@ async def main(): my_fn = me.first_name logger.info(f'your id: {my_id}') # Changeble in run-time + # FIXME: Make classes based variables maybe more useful way, because globals is mess global auto_bioeb_sleep_interval, auto_bioeb_pathogen_threshold, auto_bioeb_min_interval, auto_bioeb_max_interval, auto_bioeb_stop auto_bioeb_sleep_interval = (6, 66) # the default on (re)start auto_bioeb_pathogen_threshold = 5 # these pathogens will be saved +- 1 @@ -338,6 +339,9 @@ async def main(): conn.commit() logger.debug('success writen not my new bio attack') except: + # NOTE: this maybe useful if you want sort database by bio-experience, but as S1S13AF7 said this + # can be like: in database you have +10k today, tomorrow it changed to +1... + # so... idk what next... c.execute("UPDATE avocado SET when_int = :wh, bio_str = :xp, bio_int = :xpi WHERE user_id = :z", { "wh": int(when), "xp": str(experience), "xpi": int(exp_int), "z": int(u2id)}) conn.commit()