importre / alfred-slack-status Goto Github PK
View Code? Open in Web Editor NEW:speech_balloon: Alfred 3 workflow to change Slack statuses at once
License: MIT License
:speech_balloon: Alfred 3 workflow to change Slack statuses at once
License: MIT License
Apologies if it's me being clueless, but it looks like either Slack has changed the way authorisation works for their API rendering this helper useless, or I'm having difficulty working out where to get the appropriate tokens.
Some documentation on this might help.
When I try and run this it isn't correctly finding the preferences file.
{ Error: Command failed: alfred-link Error: Alfred preferences not found at location /Users/dknight/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist
Looking into the file system my Alfred preferences is actually com.runningwithcrayons.Alfred-3.plist
, not com.runningwithcrayons.Alfred-Preferences-3.plist
?
I had a look in the source code but can't work out how that path is getting resolved? I assume it has something to do with https://github.com/samverschueren/resolve-alfred-prefs?
My Alfred preferences are shared across multiple users (using Alfred’s syncing feature), and are therefore stored in /Users/Shared/Library/Application Support/Alfred 3
. However, this could also be any other location, e.g. Dropbox.
npm i -g alfred-slack-status ⏎
> [email protected] postinstall /usr/local/lib/node_modules/alfred-slack-status
> alfy-init
{ Error: Command failed: alfred-link
Error: Alfred preferences not found at location /Users/aaron/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist
at pathExists.then.exists (/usr/local/lib/node_modules/alfred-slack-status/node_modules/resolve-alfred-prefs/index.js:15:10)
at <anonymous>
at Promise.all.then.arr (/usr/local/lib/node_modules/alfred-slack-status/node_modules/execa/index.js:201:11)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
code: 1,
killed: false,
stdout: '',
stderr: 'Error: Alfred preferences not found at location /Users/aaron/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist\n at pathExists.then.exists (/usr/local/lib/node_modules/alfred-slack-status/node_modules/resolve-alfred-prefs/index.js:15:10)\n at <anonymous>\n',
failed: true,
signal: null,
cmd: 'alfred-link',
timedOut: false }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `alfy-init`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/aaron/.npm/_logs/2018-02-01T12_14_04_834Z-debug.log
```
I just tested this, Clearing status works, setting to Eating
works, but the In a meeting preset fails, not quite sure why.
At least, custom messages work so it's cool :) tested with slackstatus :sunglasses: @_@
Workaround:
slackstatus :calendar: In a meeting
I saw nothing special in the logs debugging logs from Alfred prefences (not sure if I'm looking at the right place tho).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.