help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-slack


From: Emanuel Berg
Subject: Re: emacs-slack
Date: Fri, 08 Oct 2021 00:10:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Samuel Banya wrote:

> Did you place the token in quotes within your Emacs config?

It looks like this! The token is extracted from ~/.authinfo
with

(setq local-slack-token
      (auth-source-pick-first-password
       :host "uppsalamakerspace.slack.com"
       :user "moasenwood@zoho.eu") )

and it looks like this:

  "x...3" (109 chars)

Compiles fine with no warnings.

;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;;   http://user.it.uu.se/~embe8573/emacs-init/slack-incal.el
;;;   https://dataswamp.org/~incal/emacs-init/slack-incal.el

(require 'slack)

(defvar local-slack-token)
(load "../passwords.el")

(defun slack-init ()
  (slack-register-team
   :name "uppsalamakerspace"
   :token local-slack-token
   :subscribed-channels '((general lokalen random)) ))
;; (slack-init) ; Failed to request slack-authorize: invalid_auth

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]