Giter Club home page Giter Club logo

voice-pruner's Introduction

Voice pruner

Discord admin bot to monitor and prune voice channels. Supports auto pruning users without the CONNECT permission. Assigning the bot a role named "no-auto-prune" disables auto pruning.

Invite link to an instance of this bot running the latest released version.

Commands

  • /is-monitored - Whether the voice channel is monitored
    • channel - Voice channel to check
  • /list - Lists visible voice channels
    • type? - Type of visible channels to list
      • Monitored - Lists visible monitored voice channels
      • Unmonitored - Lists visible unmonitored voice channels
  • /prune - Prune voice channels
    • channel? - Prune only this voice channel
    • role? - Prune only this role

Required bot permissions

  • MOVE_MEMBERS - Required for pruning

Self hosting

A statically compiled binary of the bot may easily be created by running cargo build --release (the --release flags optimizes the binary). It's possible, through feature flags, to configure the TLS' certificate root store, defaulting to native-roots. Available feature flags:

  • native-roots - The platform's certificate root store
  • webpki-roots - Mozilla's certificate root store.

The bot tries to, on start-up, read its token from systemd's credential storage (a credential named token) or the TOKEN environment variable. Use the voice-pruner.service unit as a starting point for running the bot with systemd.

Privileged intents

The bot requires the GUILD_MEMBERS priviledged intent to monitor the updates of users' roles, but does otherwise function without it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.