https://github.com/bmonty/aa5robot
A Slack bot for the Alamo Area Radio Organization Slack channel.
https://github.com/bmonty/aa5robot
hamradio slackbot
Last synced: 7 months ago
JSON representation
A Slack bot for the Alamo Area Radio Organization Slack channel.
- Host: GitHub
- URL: https://github.com/bmonty/aa5robot
- Owner: bmonty
- License: mit
- Created: 2018-08-12T16:15:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-04T01:42:16.000Z (about 7 years ago)
- Last Synced: 2025-01-18T16:27:27.444Z (9 months ago)
- Topics: hamradio, slackbot
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a simple Slack robot designed to provide info to AARO club members.
The script expects the following environment variables to be set:
**SLACK_BOT_TOKEN** - Bot User OAuth Access Token from Slack's API page. This token is required.
**APRS_CALLSIGN** - The callsign to use when sending to APRS-IS
**APRS_PASSWORD** - APRS-IS password for the value in ```APRS_CALLSIGN```
**APRS_FI_TOKEN** - API token for accessing aprs.fi
The robot can be run in two ways:
1. Run the python script on the host. You will need to install the package
dependencies before running the script.
2. Use the included Dockerfile to create an image and run the bot as a container.To run the bot on the command line, it's recommended to create a virtualenv.
Once the virtualenv is setup and active, clone the repo. Run the following to
start the bot:
```
> pip install -r ./requirements.txt
> python aa5robot.py
```To run the bot as a docker container:
```
> docker build -t aa5robot:latest .
> docker run -d --name aa5robot -e SLACK_BOT_TOKEN='' aa5robot:latest
```