/BanStatus

A Discord Bot who prevent members to have a certain status/presence

Primary LanguageJavaScriptMIT LicenseMIT

Ban Discord Statuses

Introduction

This bot allows you to ban discord statuses. You can configure the bot to ban a status if it is in the list of banned statuses.

You need to configure config.json and hidden.json before starting the bot.

A bot who use it

BanSpammers who ban user using the Mass-DM-discord repository. People with 'github.com/hoemotion' in their status are banned.

Configuration

Default config

{
  "sanction": "kick", //Here you can choose between kick or ban
  "dmSpammer": false, //Choose if you want to send a dm to the user who used status
  "dmMessage": "You've been banned from {server} beceause you're using a selfbot against Discord TOS.",

  "botStatus": "Catching spammers for {user_count} members", //The bot status

  "bannedStatuses": { //An array who contains the banned statuses
    "status1": {
      "search": "EQUAL", //Choose between EQUAL or CONTAINS
      "type": "WATCHING", //Status type (WATCHING, STREAMING, PLAYING, LISTENING, CUSTOM)
      "name": "github.com/hoemotion",
      "description": "",
    },
    "status2": {
      "search": "CONTAINS",
      "type": "It can be WATCHING, STREAMING, PLAYING, LISTENING",
      "name": "ig. for a spotify music it can be the stream, music, game title or classic custom status",
      "description": "ig. for a spotify music it can be the artist and the album etc",
    } //If you want to not check something, just leave it empty or remove the variable
  }
}

Utility

You can for example use this bot to ban people who hear a shitty music (like Wejdene), or a streamer who is playing a game you don't like (like League of Legends).

To catch custom statuses you have to set 'CUSTOM' in type and the name is the content of the custom status.