Socket
Book a DemoInstallSign in
Socket

discord-message-cleaner

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-message-cleaner

Cleans messages from a discord channel older than a set time in days

pipPyPI
Version
0.1.1
Maintainers
1

DiscordMessageCleaner

PyPI version GitHub Sponsorship

Cleans messages from a discord channel older than a set time in days

Setup

pip install discord-message-cleaner

🚀 Setting Up & Inviting DeleteBot

  • Create a Discord Application

  • Add a Bot User

    • In your application sidebar, select BotAdd BotYes, do it.
    • Under Privileged Gateway Intents, enable Message Content Intent.
  • Generate an Invite Link

    • In the sidebar, go to OAuth2URL Generator.
    • Under Scopes, check: bot
    • Under Bot Permissions, check at minimum:
      • Read Message History
      • Manage Messages
    • Copy the generated URL at the bottom.
  • Invite to Your Server

    • Paste the URL into your browser, select your server, and authorize.

Run

discord_message_cleaner
  --token=<your_discord_bot_token>
  --channel_id=<your_discord_channel_id>
  --days=<number_of_days>

Docker

docker run -d \
  --name="DiscordMessageCleaner" \
  -e 'TOKEN=<your_discord_bot_token>'
  -e 'CHANNEL_ID=<your_discord_channel_id>'
  -e 'DAYS=<number_of_days>'
  rix1337/docker-discord-message-cleaner:latest

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts