my bot used to have a feature that echoes back certain words. This obviously lead to it being used for racist stuff.
The worst part was that the message the bot sent could not be removed by mods.
The easiest solution do this would be for the bot to be able to time out its own messages, or allow some other ways to remove the message on command.