Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taurus5650/taiwan_opendata_cultureinfo_w_slack


https://github.com/taurus5650/taiwan_opendata_cultureinfo_w_slack

slack slack-bot slackbot

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# tw_culture_opendata_w_slack

### Intro
- May through to slack bot getting Taiwan concert / event's information.
- Open dataset from Ministry of Culture ( Link : https://opendata.culture.tw/frontsite/openData/detail?datasetId=274 )

![ResultGIF.gif](result_readme%2FResultGIF.gif)

### Setup
1. Create virtual env and active venv
```commandline
python -m venv venv
source venv/bin/activate
```

2. Install library
```commandline
pip install -r requirement
```

3. Setup ur slack bot
- a. Create slack bot (Ref. [Create Slack Bot Using Python Tutorial With Examples](https://www.pragnakalp.com/create-slack-bot-using-python-tutorial-with-examples/))
- b. Copy manifest.yml paste to app menifest setting
![slack_manifest.png](result_readme%2Fslack_manifest.png)
- c. Create a slack channel and add ur slack bot

4. In venv, export the token
- a. Copy the SLACK_BOT_TOKEN and SLACK_APP_TOKEN from slack api
![SLACK_BOT_TOKEN.png](result_readme%2FSLACK_BOT_TOKEN.png)
![SLACK_APP_TOKEN.png](result_readme%2FSLACK_APP_TOKEN.png)
- b. Command in venv or set up token in `entrypoint.sh`
```commandline
export SLACK_BOT_TOKEN=xoxb-xxxxx
export SLACK_APP_TOKEN=xapp-xxxxx
```
![export_cli.png](result_readme%2Fexport_cli.png)

5. Started the code
```commandline
python3 app.py
```
Or run entrypoint.sh
```commandline
sh entrypoint.sh
```

6. User able input "concert" / "event" / "exhibition" to get information
- ![final_result.png](result_readme%2Ffinal_result.png)