Roanoke Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Stamets@lemmy.world to Lemmy Shitpost@lemmy.world · 21 days ago

The Legends is among us

lemmy.world

message-square
16
fedilink
345

The Legends is among us

lemmy.world

Stamets@lemmy.world to Lemmy Shitpost@lemmy.world · 21 days ago
message-square
16
fedilink
alert-triangle
You must log in or register to comment.
  • Ghostalmedia@lemmy.world
    link
    fedilink
    English
    arrow-up
    84
    ·
    21 days ago

    Needs smaller blurrier code. I can still read half of it.

    • Sjmarf@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      56
      arrow-down
      1
      ·
      20 days ago

      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')
      
      • Ghostalmedia@lemmy.world
        link
        fedilink
        English
        arrow-up
        32
        ·
        20 days ago

        Bruh. I said I wanted it worse.

  • oni ᓚᘏᗢ@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    20 days ago

    lmao discord bots can be that intrusive?

    • TheSambassador@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      20 days ago

      If the server owner gives the bot access to those permissions and the users have activity sharing enabled, yep.

  • ceenote@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    20 days ago

    30 minutes? Seems lenient. Can Discord detect if League is installed?

    • arudesalad@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      20 days ago

      It can but I think it’s only client side (for their buggy overlay). Not something bots can access

  • Dicska@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    20 days ago

    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.

    • Lemminary@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      19 days ago

      Brawl is 15 minutes. Get it while you can.

  • M137@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    20 days ago

    Should be: if you play LoL at all you get banned.

  • drunkpostdisaster@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    19 days ago

    Good. I don’t think I have seen anyout actually have fun playing that game.

    • Baguette@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      19 days ago

      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

  • StellarSt0rm@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    19 days ago

    The nesting is insane on that code, please use early returns 😭

  • Treczoks@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    19 days ago

    For someone not knowing that game: ELI5?

  • NONE@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    20 days ago

    Is that GDScript (Godot Engine) or Python?

    • RandomVideos@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      20 days ago

      Unless you are using gdscript in a different code editor than godot, it would look different

Lemmy Shitpost@lemmy.world

lemmyshitpost@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lemmyshitpost@lemmy.world

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful

Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

…


2. No Illegal Content

Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

…


3. No Spam

Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

…


4. No Porn/Explicit

Content


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

…


5. No Enciting Harassment,

Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

…


6. NSFW should be behind NSFW tags.

-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

…

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.37K users / day
  • 4.51K users / week
  • 7.35K users / month
  • 14.9K users / 6 months
  • 1 local subscriber
  • 32.9K subscribers
  • 7.47K Posts
  • 48.2K Comments
  • Modlog
  • mods:
  • Aer@lemmy.world
  • Striker@lemmy.world
  • WiildFiire@lemmy.world
  • Decoy321@lemmy.world
  • Thekingoflorda@lemmy.world
  • YoBuckStopsHere@lemmy.world
  • Flying Squid@lemmy.world
  • The Picard Maneuver@lemmy.world
  • BE: 0.19.10
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org