Teams slack bot
The slack bot preprocess commands from slack chat and constructs requests to the Teams microservice. And also construct successful/unsuccessful responses to the slack chat.
**For test slackbot on real remote server with real slack Team
- Fill properties file (teams.baseURL,slack.slashCommandToken)
- Build application with Gradle
- Copy \build\libs\teams-slack-bot.jar to remote server
- For manual testing you can use FakeUserRepository that containes filled map with slacknames (e.g. @a, ... @z). To switch on the fake repository instead of real UserRepository run jar file with following command:
java -jar -Dspring.profiles.active=test teams-slack-bot.jar
- Create your slack Team
- Create your slack app, add slash command (https://api.slack.com/apps) for example command: /teams-activate request url: http://yourserver:port/v1/commands/teams/activate
- Test with your real slack