Implemented Discord Invite Filter

Discussion in 'Suggestions' started by Sando3, Aug 4, 2018.

Thread Status:
Not open for further replies.
  1. Sando3
    Offline

    Sando3 Tom Holland Premium

    Messages:
    4,147
    I suggest to:
    • Let BlargBot view and send messages in #general
    • Do b!blacklist to prevent command usage in #general
    • Add a censor to all channels to prevent Bots, Staff and Users from posting discord invites. (see below)
    b!censor ADD /(?:discord(?:(?:.|.?dot.?)(?:gg|me|li|to|io)|app(?:.|.?dot.?)com\/invite)|invite(?:.|.?dot.?)gg)\/[\da-z]+/igm -R -r [AUTOMOD] Server invites -d {set;~msg;{send;{channelid};:no_entry: **| {username}** tried to advertise!}} {timer;{delete;{channelid};{get;~msg}};1s}

    (The content above can be copied and pasted. It deletes the message, sends a message saying who sent an invite, then deletes that message shortly after. It uses regex fyi)




    Why a censor is needed
    Several roles like Moderator, Trusted and Bots don't get their messages moderated by Dyno. If they were moderated, stuff like the xp leaderboards and hunting inventory would be auto-deleted. So Dyno can't deal with server invites sent by bots. If your username is a discord invite and you leave the server, your name gets mentioned by Tatsumaki. There are also bot commands that post what you tell it to send. Moreover, Dyno doesn't delete discord.me or discord.io links since they're not a direct invites. The censor above does.
    [​IMG][​IMG][​IMG][​IMG]

    @xBMAN xoxo plox <3 @bmannnnnn @bamnnnnnnnnnnn @hi
     
  2. Acceptation
    Offline

    Acceptation ❤️ Premium

    Messages:
    8,020
    IGN:
    Acceptation
    Support. You smart boi.
     
  3. Simons4u
    Offline

    Simons4u Well-Known Member

    Messages:
    782
    Support, I just saw some of these bots just join and then leave this would stop the bots. Great idea.
     
  4. Koreancurry
    Offline

    Koreancurry Active Member

    Messages:
    187
    Support
     
  5. Porky
    Offline

    Porky Senior Moderator Senior Moderator Competition Team

    Senior Moderator
    Messages:
    7,285
    support

    free bump for sando as he loves discord
     
  6. JustExposed
    Offline

    JustExposed Experienced Member

    Messages:
    1,115
    Support, would help against bots
     
  7. Porky
    Offline

    Porky Senior Moderator Senior Moderator Competition Team

    Senior Moderator
    Messages:
    7,285
    bumping this back because this just needs to fixed. It's happening a lot rn
     
  8. Purge
    Offline

    Purge Boss Member

    Messages:
    2,085
    Support. / Bumping.
     
  9. Sando3
    Offline

    Sando3 Tom Holland Premium

    Messages:
    4,147
    oh my god thank you so super ultra much for submitting your suggestion. We have decided that we will be implementing this suggestion.

    The regex used is now:
    /(?:discord(?:(?:.|.?dot.?)(?:gg|me|li|to|io)|app(?:.|.?dot.?)com\/invite)|invite(?:.|.?dot.?)gg)\/(?!dzDMATe|kFKxANX|nXFzsDm|F3wvXVf|mineverse|upP38nE|JbgyzrC|skywars|NNrF9sc|uEzDVKG|sb|gkKzNJa).*/ig
    to allow certain mineverse, skywars, skyblock and minetime invites.

    Thread moved to archives.
     
Thread Status:
Not open for further replies.

Share This Page