W
W
WhatTheCucumber2020-01-02 13:15:27
Python
WhatTheCucumber, 2020-01-02 13:15:27

How to make the bot delete all messages except commands?

It is necessary that the bot automatically delete everything except messages with commands and the commands themselves, both their own and other bots.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-01-02
@Azperin

Well, write once you need to. The simplest is to use the framework https://discordpy.readthedocs.io/en/latest/
The logic is as follows

if (isCommand) {
  // do work
} else {
  // delete message
};

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question