JackDotJS / OptiBot

(DISCONTINUED) The original Discord bot for OptiFine. https://discord.gg/3mMpcwW
1 stars 0 forks source link

!flagcape - Blacklist capes #146

Open ZenithRogue opened 4 years ago

ZenithRogue commented 4 years ago

Pretty simple !flagcape <username> adds cape to a blacklist

Could work as a toggle

JackDotJS commented 4 years ago

was thinking of having this as part of an all-in-one !blacklist command, something like

!blacklist <type> <value>

relevant: #111, #112

ZenithRogue commented 4 years ago

Here is the current list of blacklisted capes btw.

"capes": [
      "herobrine",
      "bishopfive",
      "god",
      "zbeub",
      "robot409",
      "xqcow",
      "felipe_neto_",
      "wilbursoot",
      "carpenter",
      "ZOOMERSLULW"
]
ZenithRogue commented 4 years ago

For the OBL rewrite, I check the name against the Mojang API, and record the UUID in the blacklist DB.

This is how each entry is stored. It is currently completely separate from the records.

{
      "moderator": 75123467123948,
      "user": "d6ebd3e3c0ef4e5a80db6ee537115a17",
      "when": 478567352
}
JackDotJS commented 4 years ago

This is what i was planning to do in NX. The bot already checks Mojang's API to fix case sensitivity, so UUID checks can be added with relative ease.

LiamDun commented 3 years ago

@ZenithRogue linked me this issue after messaging him to add a cape to the list so just thought I might list usernames that need to be added / removed

• remove god • remove bishopfive • remove robot409 • remove felipeneto • remove wilbursoot • remove carpenter • add BRCraftv • add GeePM • add hudzell • add jschlatt • add vinnyvinesauce

ZenIsBestWolf commented 3 years ago

This addition is confusing as most of the usernames don't have capes, only jschlatt and vinnyvinesauce, jschlatt's being disabled with a completely blank design, and vinnyvinesauce's being just a mushroom.

LiamDun commented 3 years ago

Are you sure? That's weird, well I didn't use namemc so we're probably getting different results

ZenIsBestWolf commented 3 years ago

I didn't either, I looked them up in the Cape Database. If they're not there, they shouldn't be anywhere else.

LiamDun commented 3 years ago

Huh that's super weird I used mcskinhistory so I could look up exactly what names have a certain cape design and I thought that was fine