Skip to content

likaci/bark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bark

Bark is a Bash script that allows you to send push notifications to various platforms such as Telegram, Bark, WeCom, Feishu, and Discord.
Screenshot 2023-08-11 at 17 48 19

Usage

bark

bark title msg channel(b|t|w|f|d) send "title msg" to channel.

  • title (optional): The title of the notification. The default title is hostname.
  • msg (optional): The content of the notification. The default content is current dir.
  • channel (optional): The default channel is Telegram. Others:
    • b for Bark
    • t for Telegram
    • w for WeChat/WeCom
    • f for Feishu/Lark
    • d for Discord

barkrun

barkrun xxxx run xxx command, save out to run.log, notify if command run failed.

Example

bark
Send Hostname dir to telegram (default channel)

To send a notification with a custom title "hello" and message "test" to multiple channels, you can use the following command:
bark hello test btwfd

To send a notification after a long long time make:
make -j9; bark

Notification Channel Setup

Bark

  1. Install the Bark app on your iOS device.
  2. Replace BARK_TOKEN in script.

Telegram

  1. Create a Telegram Bot by the official guide, Obtain the bot token.
  2. Start chat with your bot, run curl "https://api.telegram.org/botBOT_TOKEN/getUpdates" get your chat_id.
  3. Replace TG_TOKEN TG_CHAT_ID.

Discord

WeCom

Feishu

About

Send push notification from cmd to telegram / bark / wechat / discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages