Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sharl/slackbot3
sample of slack bot
https://github.com/sharl/slackbot3
slack slack-bot slackbot
Last synced: about 1 month ago
JSON representation
sample of slack bot
- Host: GitHub
- URL: https://github.com/sharl/slackbot3
- Owner: sharl
- Created: 2022-09-28T11:18:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T11:44:44.000Z (about 2 years ago)
- Last Synced: 2023-03-12T02:48:16.753Z (almost 2 years ago)
- Topics: slack, slack-bot, slackbot
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
slackbot3
=========sample script for slackbot
## preinstall
```
git clone https://github.com/sharl/geeklets.git
cp geeklets/.amedas ~
cp geeklets/{amedas,amesh} ~/bin
```- amesh use imagemagick
## prereq
```
pip install --upgrade slack_sdk aiohttp requests bs4
```## usage
```
$ SLACK_TOKEN=xoxb-hogehoge ./slackbot3.py
```## Appendix
```
SLACK_TOKEN=xoxb-hogehoge docker-compose up -p project_name -d
```## Module usage
### message.switchbot.meter
- config.json
```
"message.switchbot.meter": {
"keyword": "wake word",
"user": "user name (NOT display name)",
"token": "",
"device": ""
}
```### message.switchbot.plug
- config.json
```
"message.switchbot.plug": {
"on": "on wake word",
"off": "off wake word",
"user": "user name (NOT display name)",
"token": "",
"device": ""
}
```### message.openai
- config.json
```
"message.openai": {
"prefix": "hamu:",
"sorry": "Sorry, I am not sure.",
"apikey": "sk-xxxxxx"
}
```