unixporn / robbb

The main bot for the r/unixporn discord server!
MIT License
132 stars 19 forks source link

Outside of #bot, Autoremove bot error messages after a few seconds #3

Closed eepykate closed 2 years ago

eepykate commented 3 years ago

by elkowar: https://github.com/unixporn/trup/issues/57

when you mistype a command, in many cases the bot prints the usage string. This response should get automatically removed after some time (~10 seconds). This could also be done for "Success" style responses. For this, there should probably be a new function SendAutoremove (or something like that) created in command.go, which resembles Reply, just that it automatically removes the message after a given amount of time.

eepykate commented 2 years ago

>command.go >rust

i totally didn't just copypaste this from the linked issue without putting any thought into it.

elkowar commented 2 years ago

Even better: Error messages are now ephemeral, so they won't get shown to others at all