π€Standup Shuffle Bot for Slack
Standup Shuffle is a custom Slack bot designed to add a fun twist to the traditional standup routine by randomizing the order in which team members share their updates.
Creating the Slack app and obtaining the webhook URL
Creating the shell script
#!/bin/bash
# Get the names from the environment variable
names_string=$NAMES
# Split the environment variable string into an array
IFS=',' read -ra names <<< "$names_string"
# Function to shuffle the array randomly
shuffle_names() {
local i
for ((i=${#names[@]}-1; i>0; i--)); do
local j=$((RANDOM % (i+1)))
local temp=${names[i]}
names[i]=${names[j]}
names[j]=$temp
done
}
# Invoke function to shuffle names
shuffle_names
# Get the message prefix from the environment variable or set a default
message=${MESSAGE_PREFIX:-"Sziasztok! A mai Sync sorrend: "}
# Concatenate the shuffled names
for ((i=0; i<${#names[@]}; i++)); do
message+=" ${names[i]},"
done
# Remove the trailing comma
message=${message%,}
# Set the webhook URL from the environment variable
webhook_url=$SLACK_WEBHOOK_URL
# Get the joke URL from the environment variable or set it to an empty string if not provided
joke_url=${JOKE_URL:-""}
# Fetch the joke from the URL using curl
joke=$(curl -s "$joke_url")
# Add the joke to the message
message+=". Hoztam egy viccet is: $joke"
escaped_message=$(echo -n $message | jq -Rs .)
echo $escaped_message
# Send the message to Slack
curl -X POST -H 'Content-type: application/json' --data-raw "{\"text\":$escaped_message}" $webhook_urlAdding the script runner to the pipeline config
Creating the pipeline-forms.yml
pipeline-forms.ymlTriggering the pipeline manually

Triggering the pipeline by a schedule
Updating a schedule
Deactivating or deleting schedules
Last updated