This is a simple app to help get or set your Slack status from the command line.

Related tags

App hacktoberfest
Overview

Slack Status

This is a simple app to help get or set your Slack status from the command line.

The app is a Spring Boot app written in Kotlin. It uses the Java Slack API client to read and set status info.

Setup

To use this app, you need a "user token" for the Slack API. This allows the app to take actions on your behalf. User token strings begin with xoxp-.

To create a user token, first create a Slack app, optionally following this tutorial. Then, find you app at https://api.slack.com/apps/ and click "OAuth & Permissions." Look under "User Token Scopes" and add scopes for users.profile:read and users.profile:write. Then reinstall the app when prompted, which will regenerate tokens. Then copy your "User OAuth Token" from the page.

You can then specify your token in an environment variable named $SLACK_API_TOKEN or with a token argument.

Usage

Run the app with Java, for example, java -jar slack-status.jar.

Set your Slack API user token via environment variable SLACK_API_TOKEN or as --token= .

Specify --get-status, --set-status, --clear-status, or --help for mode.

Specify --text='some text' --emoji='emoji-name' when setting status.

Optionally specify --expires='some date/time expression' when setting status. Natty is used for natural language date parsing, so expressions like "tomorrow morning" or "wednesday at 5pm" will be recognized.

TODO

  • Get token from env or arg
  • Improve results display
  • Add mode to display status
  • Add mode to clear status (empty strings to status_text and status_emoji)
  • Add 'help'/'usage' to cli and README
  • Add setting of expiration date, with shortcuts like "end of day"
  • Add saving/retrieving template statuses
  • Decide whether to keep Spring dependencies
You might also like...
Help-page-finder - Help page finder for android

help-page-finder This app allows to search for help articles on a website. It is

A simple android app written in Kotlin to get defination of word entered from Free Dictionary API.
A simple android app written in Kotlin to get defination of word entered from Free Dictionary API.

FlashCard A simple android app written in Kotlin to get defination of word entered from Free Dictionary API. Problem Statement Many of students don't

Android Bitcoin market app base on Jetpack Compose and MVI. The app displays current bitcoin market price and history price k-line charts.

compose-bitcoin Android Bitcoin market app base on Jetpack Compose and MVVM & MVI. Features Current bitcoin market price. K-line charts of history pri

Find your ideal fitness partners according to your preferences and interact with them whenever you want! All this with no hassle, because there's FitMate! Take timed challenges updated daily, read blogs related to health, and be a part of numerous communities too! During covid times, partner with your FitMate to achieve your fitness goals at home. Android-Study-Jams - An app which could help your fellow students or faculty or college
Android-Study-Jams - An app which could help your fellow students or faculty or college

NOTIFY Problem Statement College or University App : An app which could help you

eduJam is an university app, which will help you with all of your university work*
eduJam is an university app, which will help you with all of your university work*

eduJam - Your one-stop to any university work eduJam is an university app, which will help you with all of your university work. It has features which

Episodie is a TV show time tracker app with unusual design written in kotlin and clean architecture approach. Get to know how much time you spent watching tv shows.
Episodie is a TV show time tracker app with unusual design written in kotlin and clean architecture approach. Get to know how much time you spent watching tv shows.

Episodie Episodie is a TV show time tracker app with unusual design. Get to know how much time you spent watching tv shows. Track easily overall progr

An app allows the users to get top news about their countries
An app allows the users to get top news about their countries

News App This app allows the users to get top news about their countries. In the following figure, you can find the developed architecture: App consis

App uses NewsAPI to get news for kotlin
App uses NewsAPI to get news for kotlin

News App Tech Stack 🛠️ Kotlin MVVM & Repository pattern LiveData Navigation Coroutines Retrofit Room Glide About App 💡 This app uses NewsAPI to get

Releases(v0.0.1)
Owner
Steven Noto
Director of Engineering at @rocketmiles
Steven Noto
Android application compatible with ZX2C4's Pass command line application

Password Store Download Documentation We're in the process of rewriting our documentation from scratch, and the work-in-progress state can be seen her

Android Password Store 2.2k Jan 8, 2023
Bbl - A command line tool to read Holy Bible

bbl A command line tool to read Holy Bible Usage In the command line, type bbl g

Hokuto Ide 12 Oct 26, 2022
AdpPad is a GUI application to use adb. adb is a command line tool to control android device.

AdbPad AdpPad is a GUI application to use adb. adb is a command line tool to control android device. Demo.mp4 ✨ Feature Observe a connected android de

katz 31 Dec 30, 2022
Slack app example for Heroku deployment, written in Kotlin, using Bolt framework.

slack-kotlin-heroku-example Slack app example for Heroku deployment, written in Kotlin, using Bolt framework. You need to configure your Slack app to

null 0 Dec 25, 2021
A collection of custom Android/Kotlin lint checks we use in our Android and Kotlin code bases at Slack.

slack-lints This repository contains a collection of custom Android/Kotlin lint checks we use in our Android and Kotlin code bases at Slack. This repo

Slack 119 Dec 20, 2022
Link previews between JetBrains Space and Slack

slack-unfurls This is the application for providing link previews between Slack and Space in both directions. It provides link previews for Slack mess

JetBrains 5 Sep 8, 2022
Restaurants - A simple app which displays a list of restaurants from a stored JSON, ordered by opening status, favorites and filter chosen from the dropdown

Restaurants - A simple app which displays a list of restaurants from a stored JSON, ordered by opening status, favorites and filter chosen from the dropdown

Prafulla Thottasseri 1 Jan 17, 2022
Tidy up your Android status bar before taking screenshots for the Play Store

DEPRECATED This project no longer works on recent versions of Android. Use Android's build-in Demo mode instead. For the curious, more information abo

Emma Vanbrabant 891 Nov 10, 2022
A simple covid-19 response application to give users an idea of the severity of their covid-19 status and profer steps to take based on the severity.

COVID-19 Response ?? A simple covid-19 response application to give users an idea of the severity of their covid-19 status and profer steps to take ba

Samson Achiaga 5 Oct 4, 2022
when you use restful api and network get disconnect you have to store your data local for make your app faster and work on ofline mode

AppArchitectureOflineMode when you use restful api and network get disconnect you have to store your data local for make your app faster and work on o

Kareem-Mansy 3 Jun 20, 2021