scripts
scripts copied to clipboard
new script lua/cmus-announce.lua: -- Announces now-playing song in cmus to current buffer/channel.
Script info
- Script name: cmus-announce.lua
- Version: 1
- Script tags: lua, music, command, audio
Description
creates /cmusAnnounce command that will display on current buffer/channel the currently playing song.
Checklist (new script)
- [x] Single commit, single file added
- [x] Commit message:
New script name.py: short description… - [ ] No similar script already exists
- [x] Name: max 32 chars, only lower case letters, digits and underscores
- [x] Unique name, does not already exist in repository
- [x] No shebang on the first line
- [x] Comment in script with name/pseudo, e-mail and license
- [x] Only English in code/comments
- [x] Pure WeeChat API used, no extra API
- [ ] Function
hook_processis used for any blocking call - [ ] For Python script: works with Python 3 (Python 2 support is optional)
- [ ] Score 100 / 100 displayed by weechat-script-lint
Thank you for this script, I tested it today, looks good to me :+1:
Hi, By convention scripts have underscores and no dashes in name, could you please rename your script to cmus_announce.lua? See file: Contributing.md Thanks!
Renamed. All good?
There's some bad bugs with it too, like it ultimately just runs a /me, which will fail on a server buffer and cmus hangs with a MPRIS warning when you launch it without MPRIS (but that's more a cmus bug not a weechat bug)