- Python 3
- Slack Bolt for Python
Note
For MLP developper, you can find tokens in our password manager.
For non MLP developper, you need to create your own bot.
Generate every necessary token required by the bot. It can be found here .env.dist.
To generate them, you can follow the documentation Slack Access tokens.
For Google Maps, please refer to the related documentation https://developers.google.com/maps/documentation/places/web-service/cloud-setup#console. You only need to activate Places API and Places API (new) for now.
You need to enabled Socket Mode and accept:
Interactivity & ShortcutsSlash Commands
Create a slash command named:
/random-lunch
Scopes:
connections:write
Scopes:
chat:writechat:write:publiccommands
Create a .env file from the .env.dist and fill it before running the app.
docker compose watchCreate a virtualenv:
python -m venv .venvActivate it:
source .venv/bin/activateInstall packages:
pip install -r requirements.txtRun the command:
python src/app.pyYou can use the command /random-lunch to get a restaurant suggestion.