@luckydonaldsbots · Post #246 · 20.06.2020 г., 01:55
Fixed @HeyAdminBot getting stuck on some special message types and becoming unresponsive. #resolved#HeyAdminBot
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #61 · 2 апр.
Ранее я уже упоминал о другой фишке из ˍˍfutureˍˍ , это оператор деления. from __future__ import division Суть проста. Раньше сложность типа данных результата поределялась типом самого сложного операнда. Например: int/int => int int/float => float В первом случае оба операнда int, значит и результат будет int. Во втором float более сложный тип, поэтому результат будет float. Если нам требуется получить дробное значение при делении двух int то приходилось форсированно один из операндов конверировать в float. 12/float(5) => float Но с новой "философией" это не требуется. В Python3 "floor division" заменили на "true division" а старый способ теперь работает через оператор "//". >>> 3/2 1.5 >>> 3//2 1 То есть теперь деление int на int даёт float если результат не целое число. В классах теперь доступны методы __floordiv__() и __truediv__() для определения поведения с этими операторами. Данный переход описан в PEP238. #pep#2to3#basic
Пребарај: #heyadminbot
@luckydonaldsbots · Post #246 · 20.06.2020 г., 01:55
Fixed @HeyAdminBot getting stuck on some special message types and becoming unresponsive. #resolved#HeyAdminBot
Hashtags
@luckydonaldsbots · Post #218 · 08.09.2019 г., 19:48
Updated @HeyAdminBot: - Improved handling of private groups, will now export the join link if the bot has the rights for that - Added a direct link to the message ("requested") - Randomizing order of admins called so it's not always the same one being the first to respond. - Fixed bug where the first admin would receive the messages meant for the other admins as well. #update#resolved#HeyAdminBot
Hashtags
@luckydonaldsbots · Post #230 · 23.03.2020 г., 11:24
I will definitely work hard to keep the most important group management services stable, including: @JoinCaptchaBot, @RulesRulesBot, @BanWarnBot, and @HeyAdminBot. And for now also the less important @NoServiceBot. #PermalinkBot#NoServiceBot#RulesRulesBot, #BanWarnBot#HeyAdminBot #ongoing#issue
@luckydonaldsbots · Post #241 · 17.05.2020 г., 14:32
Quickly moved @anonymize_bot, @HeyAdminBot, @PermalinkBot, @ponbot (+ 🔞@p0nbot) and @RpAliasBot to the new server, as those didn't need any database migrations, as they simply don't have any database. #migration #anonymize_bot#HeyAdminBot#PermalinkBot#ponbot#p0nbot#RpAliasBot