slack-cleaner icon indicating copy to clipboard operation
slack-cleaner copied to clipboard

Can't delete private messages sent by bot

Open bodiroga opened this issue 9 years ago • 2 comments

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

bodiroga avatar Oct 01 '15 10:10 bodiroga

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:

kfei avatar Oct 01 '15 15:10 kfei

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? image

Freelensia avatar Jul 30 '19 02:07 Freelensia