yuya373 / emacs-slack

slack client for emacs
1.1k stars 117 forks source link

Deprecated? #589

Open pati-ni opened 3 months ago

pati-ni commented 3 months ago

Hi @yuya373, I was wondering if this package is deprecated? To my understanding xoxc are deprecated and as of now emacs slack hangs.

Is there an alternative way to access the API and use slack through emacs?

unhammer commented 2 months ago

See https://github.com/yuya373/emacs-slack/issues/585#issuecomment-1985735967 – that fork works fine.

As discussed in https://github.com/yuya373/emacs-slack/issues/566 , use e.g.

(slack-register-team
       :name "Dagon"
       :default nil
       :cookie (auth-source-pick-first-password
               :host '("slack-dagon")
               :user "cookie" :type 'netrc :max 1)
       :token (auth-source-pick-first-password
               :host '("slack-dagon")
               :user "token" :type 'netrc :max 1)
       :full-and-display-names nil ; protect the innocent
       :animate-image t  ; ward off ghost gifs
       :subscribed-channels '(thalarion sarnath ib))

~/.authinfo.gpg:

machine slack-dagon user token password "xoxc-yarlathotepfvulgtlaglnvulgtmooboshu"
machine slack-dagon user cookie password "xoxd-naazathothazathothorreyliheehlirgh; d-s=5555555555"
pati-ni commented 2 months ago

@unhammer Thanks, any idea how to retrieve these tokens using the slack API or some active slack session?

unhammer commented 2 months ago

https://my.slack.com/customize and F12→Storage→Cookies on Firefox, more info at https://github.com/wee-slack/wee-slack?tab=readme-ov-file#get-a-session-token