scripts icon indicating copy to clipboard operation
scripts copied to clipboard

new script lua/cmus-announce.lua: -- Announces now-playing song in cmus to current buffer/channel.

Open Nomarian opened this issue 1 year ago • 1 comments

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_process is 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

Nomarian avatar May 03 '24 04:05 Nomarian

Thank you for this script, I tested it today, looks good to me :+1:

kllmanu avatar May 03 '24 19:05 kllmanu

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!

flashcode avatar May 13 '24 13:05 flashcode

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)

Nomarian avatar Jun 03 '24 00:06 Nomarian