Skip to content

🕵️Notifying when users became online and offline

License

Notifications You must be signed in to change notification settings

moikot/slack-spy-bot

Repository files navigation

Slack Spy Bot

Build Status Go Report Card Coverage Status

Notifies when a user goes online or offline.

How to run

You can run it as a Docker container on a Google VM.

docker run -d -e BOT_TOKEN=[token] moikot/slack-spy-bot

If you've got Golang environment and Dep, you can build it from source.

git clone git@github.com:moikot/slack-spy-bot.git

cd slack-spy-bot

dep ensure -vendor-only

export GOOGLE_APPLICATION_CREDENTIALS=[credentials]; \
  export BOT_TOKEN=[token]; \
  go run .

How to use

Assuming that you've already added the bot to your Slack applications, and it successfully connected to your Slack, you should be able to issue the following commands:

  • To start spying on a user
    spy-on @User
    
  • To stop spying on a user
    spy-off @User
    

About

🕵️Notifying when users became online and offline

Resources

License

Stars

Watchers

Forks

Packages

No packages published