Auto send check-in message to Slack channel at a specific time.

Auto Slack Check-in

Build Status GoDoc Go Report Card

auto-slack-checkin is a command line interface (CLI) that sends check-in or check-out message for you while you are sleeping 🛌.

Usage:
  auto-slack-checkin [command]

Available Commands:
  config          Show all configs
  cron            Run a cron job that automatically sends a message at a specified time.
  config set      Set configs.

Flags:
  --help              Get helo about any command (work with all commands)

Use "auto-slack-checkin [command] -h" for more information about a command.

Installing auto-slack-checkin

Downloading a Release from GitHub

Visit the Releases page for the auto-slack-checkin GitHub project, and find the appropriate archive for your operating system and architecture. Download the archive from from your browser or copy its URL and retrieve it to your home directory with wget or curl.

For example, with wget:

cd ~
wget https://github.com/mhughdo/auto-slack-checkin/releases/download/v<version>/auto-slack-checkin_<version>_linux_amd64.tar.gz

Or with curl:

cd ~
curl -OL https://github.com/mhughdo/auto-slack-checkin/releases/download/v<version>/auto-slack-checkin_<version>_linux_amd64.tar.gz

Extract the binary:

tar xf ~/auto-slack-checkin_<version>_linux_amd64.tar.gz

where <version> is the full semantic version, e.g., 1.1.2.

Window version is not supported yet.

Configuring Values

The auto-slack-checkin configuration file is stored at $HOME/.auto-slack-checkin.json

Note: You need to run any command, e.g. ./auto-slack-checkin config to init config file.

You can directly change the config file but make sure file format stays the same.

Save and close the file. The next time you use auto-slack-checkin, the new values you set will be in effect.

You need to set token, cookie, message, channel-id for CLI to work. cron-expr is set to "0 8 * * *" by default which is everyday at 8AM. Full command:

./auto-slack-checkin config set --cron-expr '0 8 * * *' --token xoxc-3058611573620-3056323014531-3086306920976-dacaa15d71a468bae5380db258aae5dbb08d2996f119d665a7c73bd7fb19550c --cookie d=WjrniNOtYeO7vSHo%2BDvBzV2iKRhz%2FbnvEDLB7Nf%2BQk15FHNpcZjVsa0ZGqoFnQcLrLklTB9EvxtkhPRs5vJbWso9%2F6cHyVUqKD%2Biuytj9g7W2eDD7d4vUzspyX9ABroxqin4Qbab7qAi4%2BEF3YtYhWfvU6%2FaNEmgK00EadzfGxz7EB92DV2ZEkPtKw%3D%3D --message "Helloooo" --channel-id C032C1GC1Q8

How to generate cron expression: https://crontab.guru/

How to get token, cookie, channel-id

  1. Open workspace in the browser.
  2. Open DevTools by pressing Control+Shift+J or Command+Option+J (Mac). The Console panel opens.

Token & Cookie

  1. Open a channel that you can freely send anything.
  2. Send a random message.
  3. Click the Network tab in the DevTools.
  4. Find the request that contains chat.postMessage
  5. Click on the request
  6. Click the Payload tab, scroll down a bit and you will see token: image
  7. Click the Headers tab, scroll down a bit. At the Request Headers section, cookie being sent by request should be there. Copying only the cookie whose key is d is enough. image

Channel id

You can easily find the channel id by clicking on the channel you want to take id and looking at the URL. The channel-id should be the last path parameter.

image

Examples

Below are a few common usage examples.

  • Run the CLI
./auto-slack-checkin cron
  • Run the CLI in the background
nohup ./auto-slack-checkin cron &
  • Show all configs
./auto-slack-checkin config
  • Set config
./auto-slack-checkin config set --token <value> --cookie <value>
Similar Resources

A Discord bot for managing ephemeral roles based upon voice channel member presence.

A Discord bot for managing ephemeral roles based upon voice channel member presence.

ephemeral-roles A Discord bot for managing ephemeral roles based upon voice channel member presence. Quickstart Click on the Ephemeral Roles logo head

Dec 19, 2022

BlueBot is an open-source trading bot that can be customized to handle specific investment strategies.

BlueBot Quick Note BlueBot and all mentioned services are free to use, including supported financial APIs. Overview BlueBot is a self-healing trading

Sep 7, 2022

Instagram to Telegram Channel Bot.

InstaTG Instagram to Telegram Channel Bot. Can access posts from any public Instagram account or an account that you follow. Features Keeps track of e

Nov 16, 2022

A discord bot that watches for tiktok URL's and automatically uploads the corresponding video to the channel

TikiTok Bot A Discord bot that watches for TikTok URLs and sends a message to the channel with the corresponding video attached Click to invite the bo

Jul 28, 2022

discord bot that plays music in a voice channel discord

Music discord bot by serje3 Description A bot written in the Golang language plays music on your server's voice channel on Discord. It can be built an

Nov 17, 2021

A Discord bot for downloading attachments from channel messages.

A Discord bot for downloading attachments from channel messages.

dcdl This is a Discord bot for downloading attachments from channel messages. Setup First, set up a Discord bot application (see here how to do so). N

May 11, 2022

"Ukaska" is a MongoDB image with a built-in backup to Telegram channel

Ukaska Ukaska (eng. Pointer) - is docker image with mongodb, that has builtin backup to Telegram Getting Started Build with Docker Mongo DB docker ima

Jun 28, 2022

Simple telegram Bot to ban Anonymous Channel users in a group

Restrict Channel Robot Telegram Bot, written in GoLang to delete messages and ban anonymous users who send as channel in groups. Can be found on teleg

Dec 20, 2022

A telegram bot to ban the chat spammers by channel, made with Golang.

ChannelBot A telegram bot to ban channels spamming chat. Vars TOKEN - Your Telegram Bot Token (@BotFather) More Information With the latest update of

Nov 8, 2022
This slack-bot collects all @gophers notifications into one slack channel

slack-bot Slack bot copying reference to a ping to notifications channel The bot is designed to listen on messages containing specific tag, copy refer

Apr 11, 2022
InStockBot notifies a selected Discord channel when a specific product is back in stock

InStockBot notifies a selected Discord channel when a specific product is back in stock

Jan 20, 2022
REPLbot is a Slack bot that allows you to control a REPL from within Slack.
REPLbot is a Slack bot that allows you to control a REPL from within Slack.

?? REPLbot REPLbot is a Slack bot that allows you to control a REPL from within Slack. It comes with a few REPLs (Go ?? , Java, NodeJS, PHP, Python, R

Dec 31, 2022
Slack bot core/framework written in Go with support for reactions to message updates/deletes
Slack bot core/framework written in Go with support for reactions to message updates/deletes

Overview Requirements Features Demo The Name Concepts Create Your Own Slackscot Assembling the Parts and Bringing Your slackscot to Life Configuration

Oct 28, 2022
send current weather updates from openweathermap api to your slack profile status using github action
send current weather updates from openweathermap api to your slack profile status using github action

go-slack-weather Send current weather updates from OpenWeatherMap API to your Slack profile status using GitHub Action Contents Setup Change Update Pe

Oct 31, 2022
Send Slack reports of pull requests pending review
Send Slack reports of pull requests pending review

preport Born out of a desire to get pull requests reviewed faster without having to send manual reminders, preport generates reports of GitLab pull re

Nov 23, 2021
Send Linux mails to Slack with golang

LinuxMailToSlack Install go install github.com/TKMAX777/MailToSlack@latest sudo

Jul 30, 2022
Client to send messages to channels in Slack.

Slack Client A simple client to send messages to channels in Slack. Example package main import { "fmt" slack "github.com/tommzn/go-slack" }

Mar 13, 2022
Discord bot to check if a URL attached on a message is part of the verified list

OCM URL Verify Bot Checks the url included in a discord message. Displays a verified status when the domain of the url attached is in the verified-dom

Nov 30, 2021
Telegram bot check your TrainingPeaks profile workouts and send notification if some workouts added or changed

TrainingPeaks Bot Telegram bot check your TrainingPeaks profile workouts and sen

Dec 29, 2021