Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/taurus5650/taiwan_opendata_cultureinfo_w_slack
- Owner: taurus5650
- Created: 2023-08-13T12:34:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-30T13:31:06.000Z (about 1 year ago)
- Last Synced: 2024-11-10T03:09:30.212Z (2 months ago)
- Topics: slack, slack-bot, slackbot
- Language: Python
- Homepage:
- Size: 18.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 bot4. 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)