定制 barth/php-slack-status-updater 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

barth/php-slack-status-updater

Composer 安装命令:

composer require barth/php-slack-status-updater

包简介

Allow you to update your slack status

README 文档

README

It's boring to manually click on slack, find how update emoji on status, or even add a custom message.

As you are lazy, you want a command line tool that can do this for you.

That's why I created this tool:

Demo

Let's install it and explore how use it...

Installation

Make sure you have PHP (>=8.0) and Composer installed. Then

composer global require barth/php-slack-status-updater

You have to export in your path the global composer binary path

Or you can find the latest phar in the release tab

Configuration

You have to create an app on slack with following scopes:

  • users:write
  • users.profile:write

Then, install it into your slack workspace, and retrieve a token for your user.

Save your token by launching the following command:

slack-status-updater auth

How To Use

To manually change your status message or emoji, launch:

slack-status-updater update-status --message="Hello teams" --emoji=wave

Note that message and emoji option are optionnal.

There is two dedicated script for the wakeup and shutdown.

# Mark you as active on slack
slack-status-updater wakeup [--message="Hello teams" --emoji=wave]

# Mark you as absent on slack
slack-status-updater shutdown [--message="See you later" --emoji=zzz]

Auto scripts

If you are really lazy, you can configure startup script and shutdown script to handle this for you.

Launch the following command:

slack-status-updater generate-script

And answer to the questions. If you leave blank for emoji, the script will use a random emoji ✨

⚠️ Currently, script generation only work for Linux. It register an autostart application in ~/.config/autostart/. Need freedesktop

Contribute ?

You know how to generate auto script on windows on MacOs ? You want improve the commands output ? Add an awesome feature ?

You are more than welcome 🤗

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固