slack-cleaner
slack-cleaner copied to clipboard
Can't delete private messages sent by bot
Hi kfei!
Many thanks for your program, it's really useful, great work ;)
I'm trying to delete all the direct messages that my bot has sent to me (the messages appear in my slackbot's direct messages field), but I can't make it work. This are list of commands that I have tried:
With my personal token:
- slack-cleaner --token=<TOKEN> --message --channel auto-build --bot
- slack-cleaner --token=<TOKEN> --message --direct
With the bot's personal token:
- slack-cleaner --token=<TOKEN> --message --channel auto-build --bot
- slack-cleaner --token=<TOKEN> --message --direct
- slack-cleaner --token=<TOKEN> --message --direct slackbot
Do you know what command should I use? I'm a little bit lost...
Many thanks for your help! Best regards,
Aitor
Hi @bodiroga
If you are using the bot's personal token, then the direct channel name should be your ID (from the perspective of the bot). So a possible command will be:
slack-cleaner --token=<TOKEN> --message --direct bodiroga --bot
I hope this works! :smile:
Hi @kfei , how do we get the bot's personal tokens?
I have many bots such as Asana, Bitbucket, Google Drive and CircleCI and they are sending private messages to me in a private message. They appear in the Apps section So I dont even know what is the name of these chanels?