Needs smaller blurrier code. I can still read half of it.
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')
Bruh. I said I wanted it worse.
lmao discord bots can be that intrusive?
If the server owner gives the bot access to those permissions and the users have activity sharing enabled, yep.
30 minutes? Seems lenient. Can Discord detect if League is installed?
It can but I think it’s only client side (for their buggy overlay). Not something bots can access
It’s especially spicy when you consider that one single normal League match can easily extend beyond 30 minutes. Hell, even a lighter mode (ARAM) can be 30-35+ minutes at times.
Brawl is 15 minutes. Get it while you can.
Should be: if you play LoL at all you get banned.
Good. I don’t think I have seen anyout actually have fun playing that game.
Arenas was fun because it took the worst parts of league out and is a 2 player team gamemode
Too bad they took it away
The nesting is insane on that code, please use early returns 😭
For someone not knowing that game: ELI5?
Is that GDScript (Godot Engine) or Python?
Unless you are using gdscript in a different code editor than godot, it would look different