SpyBot notifies you when a specific user comes online after you have told the bot to spy on the user
- Create .env file using the template of file 'sample-env'
- Fill all the environment variables mentioned in the file
Command Trigger Word: spy
Request URL: /spies
Request Method: POST
Response User: spt-bot (change as you wish)
Fill other details as you prefer!
Channel: any channel
Add the incoming webhook id in environment file(WEBHOOK_ID). SpyBot will use this incoming webhook to notify the user once the person comes online
- Mention the mattermost server host(MATTERMOST_HOST) and port(MATTERMOST_PORT) in the environment file
- Create a mattermost user for spy-bot and add that account credentials(SPY_ID, SPY_PASSWORD) in the environment file
- Create 1 slash command and 1 incoming webhook as mentioned above. And assign incoming webhook id to WEBHOOK_ID env variable
- Mention the polling interval time(POLL_INTERVAL_SECS). If it is not set, default polling interval is 1 minute. This indicates the frequency to check the user status.
- Install npm dependencies: npm install
- Start the app: npm start
- To spy on your team mate: Type "/spy @<name>" or "/spy <name>" in the any channel. Once the victim comes online, Spybot will post the response in the direct channel to you