Skip to content

OpenEuroLLM/mattermost-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

mattermost-bot

Send messages to a Mattermost channel from the command line.

Prerequisites

  • curl
  • jq

Credentials

This script authenticates with your Mattermost username and password.

  1. Your username is shown under your profile picture in the top-left corner of Mattermost, or in Profile → Username.
  2. Your password is the one you use to log in to https://mattermost.ufal.mff.cuni.cz.

Usage

MM_USERNAME=XXX MM_PASSWORD=YYY ./ping_message.sh "This comes from a bot ran by $USER"

By default the message is sent to #mattermost-bot-demo. To send to a different channel, pass the channel name (without #) as a second argument:

MM_USERNAME=XXX MM_PASSWORD=YYY ./ping_message.sh "Hello!" mattermost-bot-demo

To avoid typing credentials every time, export them in your shell:

export MM_USERNAME=XXX
export MM_PASSWORD=YYY

./ping_message.sh "This comes from a bot ran by $USER"

Mentions

  • @channel — notifies everyone in the channel
  • @here — notifies online members
  • @username — notifies a specific user
MM_USERNAME=XXX MM_PASSWORD=YYY ./ping_message.sh "@channel Job finished by $USER, it costed a ton but it was worth it 🚀."

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages