kfei / slack-cleaner

:speech_balloon: Bulk delete messages and files on Slack
MIT License
1.24k stars 144 forks source link

Cleaning with --bot argument is deleting posts by users #7

Closed NJ0 closed 8 years ago

NJ0 commented 8 years ago

Thanks for this very useful program, it was an extremely pleasing experience watching all of slackbots old reminder messages disappear!

I've encountered an issue trying to clean up bot posts in public channels, the syntax: slack-cleaner --token TOKEN --channel test --message --bot --perform cleans posts by users as well as bots (almost as if I hadn't used the --bot argument).

For example, in an empty test channel I posted two "asdasd" messages and ran the cleaner using the aforementioned synatx and got the following result: 22-03-2016 1-46-12 pm

Both my messages get deleted and I'm pretty sure I'm not a bot. Any ideas as to what I'm doing wrong?

kfei commented 8 years ago

Should be fixed in 0.2.0. Many thanks for reporting! :smile:

NJ0 commented 8 years ago

I can confirm the fix works in 0.2.0. Thank you for your hard work!