For your viewing pleasure:
for entry in entries:
if entry['time'] + 1800 < time():
guild = self._bot.get_guild(int(entry['guild_id']))
member = guild.get_member(int(entry['user_id']))
if member is not None:
if member.activity.name is not None:
if member.activity.name.lower() == "league of legends":
await member.send("The 30 minutes has elapsed and you are still playing league, get banned.")
await member.ban(delete_message_days=0, reason='playing league')
Python does have a switch
statement now, actually. And yes, they went out of their way to call it something different - match
.
https://docs.python.org/3/tutorial/controlflow.html#match-statements
there was nothing preventing women from having bank accounts before 1974.
Depending on which banks were available in her area, she may still have been unable to open a credit card despite it being legal to do so. Prior to 1974, it was legal for banks to require a man’s signature for a woman to open a credit card, and many banks chose to require this. According to this article from the Smithsonian Magazine, some banks also applied a 50% reduction to womens’ wages when calculating the credit card limit for an applicant.
I agree that the facts are very frequently misrepresented.
Yeah, you would've thought it would work that way. Regrettably, the standard timezone code of Etc/GMT+4
is actually GMT-4. Wikipedia