Giter Club home page Giter Club logo

Comments (4)

sgratzl avatar sgratzl commented on September 6, 2024

I usually get cant_delete_message when my rate is too high, such that slack kicks me out. Does that happen for all messages or just for some?

from slack-cleaner.

kenneyhe-zingbox avatar kenneyhe-zingbox commented on September 6, 2024

sorry but it fails for even (--rate 1). I even tried my own user account and still failed.

$ ... --message --channel zc-alarm --user 'kenney.he' --before 20180122 --rate 1'
Running slack-cleaner v0.4.0
Deleting messages from channel zc-alarm
Will delete message -> kenney.he :  <@U8EM71DM5> set the channel purpose: get status alarms
Will delete message -> kenney.he :  <@U8EM71DM5> has joined the channel
Will delete message -> kenney.he :  <@U8EM71DM5> has left the channel
Will delete message -> kenney.he :  <@U8EM71DM5> has joined the channel

$ ... --perform
Running slack-cleaner v0.4.0
Deleting messages from channel zc-alarm
Failed to delete (cant_delete_message)->
{   u'purpose': u'get status alarms',
Failed to delete (cant_delete_message)->
Failed to delete (cant_delete_message)->
Failed to delete (cant_delete_message)->

0 message(s) cleaned.

    u'subtype': u'channel_purpose',
    u'text': u'<@U8EM71DM5> set the channel purpose: get status alarms',
    u'ts': u'1516560401.000017',
    u'type': u'message',
    u'user': u'U8EM71DM5'}
{   u'subtype': u'channel_join',
    u'text': u'<@U8EM71DM5> has joined the channel',
    u'ts': u'1516554103.000022',
    u'type': u'message',
    u'user': u'U8EM71DM5'}
{   u'subtype': u'channel_leave',
    u'text': u'<@U8EM71DM5> has left the channel',
    u'ts': u'1513721307.000207',
    u'type': u'message',
    u'user': u'U8EM71DM5'}
{   u'subtype': u'channel_join',
    u'text': u'<@U8EM71DM5> has joined the channel',
    u'ts': u'1513709543.000039',
    u'type': u'message',
    u'user': u'U8EM71DM5'}

from slack-cleaner.

kenneyhe-zingbox avatar kenneyhe-zingbox commented on September 6, 2024

Even with super user and not having mail clark, code DOES NOT erase private channel..

public case works:

$ docker run sgratzl/slack-cleaner -c 'slack-cleaner --token <token> --message --channel public --user '*' --before 20180122 --rate 1'
Running slack-cleaner v0.4.0
Deleting messages from channel public
Will delete message -> captainamerica :  Test
Will delete message -> captainamerica :  <@U04SW899U> set the channel purpose: Test public
Will delete message -> captainamerica :  <@U04SW899U> has joined the channel

3 message(s) will be cleaned.

Now you can re-run this program with `--perform` to actually perform the task.

failing for private channel cases even with superuser:

$ docker run sgratzl/slack-cleaner -c 'slack-cleaner --token <token> --message --channel zc-alarms --user '*' --before 20180122 --rate 1 --perform'
Running slack-cleaner v0.4.0
Channel, direct message or private group not found
$ docker run sgratzl/slack-cleaner -c 'slack-cleaner --token <token> --message --channel zc\-alarms --user '*' --before 20180122 --rate 1 --perform'
Running slack-cleaner v0.4.0

from slack-cleaner.

sgratzl avatar sgratzl commented on September 6, 2024

a private channel is called a group please try --group ...

from slack-cleaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.