CannedYeet

joined 2 years ago
[–] [email protected] 12 points 1 day ago (1 children)

It's an important ingredient in credit cards. Of course you have to invent credit cards first.

[–] [email protected] 8 points 2 days ago

Biological. Artificial organisms designed nucelotide by nucleotide.

The human brain is still more energy efficient than computers right now.

[–] [email protected] 1 points 4 days ago

I define democratic socialism to be the policies that democratic socialists would put in place that we don't already have under systems we're not currently calling democractic socialism.

[–] [email protected] 3 points 4 days ago

NECO wafers. Like cardboard they taste

[–] [email protected] 2 points 4 days ago (3 children)

Look at the track record of nationalized industries. It's not good.

[–] [email protected] 17 points 4 days ago

There's a Tile at the bottom on the pic

[–] [email protected] 1 points 2 weeks ago* (last edited 2 weeks ago)

I worked with chatgpt since I'm not a python dev, and this is what I came up with

from time import time

class PlaySession:
    def __init__(self, data: dict):
        self.guild_id = int(data['guild_id'])
        self.user_id = int(data['user_id'])
        self.timestamp = data['time']

    def is_longer_than_half_hour(self) -> bool:
        return self.timestamp + 1800 < time()

    async def resolve_member(self, bot) -> "discord.Member | None":
        guild = bot.get_guild(self.guild_id)
        return guild.get_member(self.user_id) if guild else None

    @staticmethod
    def is_playing_league(member) -> bool:
        activity = getattr(member, 'activity', None)
        name = getattr(activity, 'name', None)
        return name and name.lower() == "league of legends"

async def ban_for_league(member):
    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")

async def process_entries(bot, entry_dicts):
    sessions = [PlaySession(d) for d in entry_dicts if PlaySession(d).is_longer_than_half_hour()]
    for session in sessions:
        member = await session.resolve_member(bot)
        if member and PlaySession.is_playing_league(member):
            await ban_for_league(member)
[–] [email protected] 3 points 1 month ago

Marty ate some of someone else's pizza

[–] [email protected] 4 points 1 month ago

I went to upvote this but it was already upvoted

[–] [email protected] 7 points 1 month ago

Gotta be Mac and Cheese inside. What the Canadians call Kraft Dinner.

[–] [email protected] 1 points 1 month ago (1 children)

Well of course you would say that

[–] [email protected] 1 points 1 month ago (3 children)

That's why I say I'd do it Kickstarter style. I'd get investments from business and people who wanted to live there and if it went south we could at least sell off the land.

 
view more: next ›