Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Bot for Slack that fetches Magic: the Gathering card pictures, oracle texts, prices and player's planeswalker points on request.

License

Notifications You must be signed in to change notification settings

torgeirl/tradingpost-beepboop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tradingpost-beepboop

Warning: Beep Boop was shut down December 31, 2017, and this repository is no longer maintained. See tradingpost-errbot for an errbot port.

Overview

A simple Magic: the Gathering bot, implemented to be a Beep Boop hostable, Python-based Slack bot.

Assumptions

  • You have already signed up with Beep Boop and have a local fork of this project.
  • You have sufficient rights in your Slack team to configure a bot and generate/access a Slack API token.

Usage

Run locally

Install dependencies (virtualenv is recommended.)

pip install -r requirements.txt
export SLACK_TOKEN=<YOUR SLACK TOKEN>; python ./bot/app.py

Things are looking good if the console prints something like:

Connected <your bot name> to <your slack team> team at https://<your slack team>.slack.com.

If you want change the logging level, prepend export LOG_LEVEL=<your level>; to the python ./bot/app.py command.

Run locally in Docker

sudo docker build -t tradingpost-beepboop .
sudo docker run -d --restart=on-failure:10 -e "SLACK_TOKEN=<YOUR SLACK API TOKEN>" tradingpost-beepboop

Make sure all files are owned by root. For other restart policies, see Docker's documentation.

Run in BeepBoop

If you have linked your local repo with the Beep Boop service (check here), changes pushed to the remote master branch will automatically deploy.

Credits

I got the inspiration to make Tradingpost after seeing Filip Söderholm's cardfetcher bot in action, and I have re-used part of his code while making Tradingpost.

The BeepBoop bot design of this project is heavily inspired by BeepBoopHQ's Starter Python bot (MIT license).

License

See the LICENSE file for license rights and limitations (MIT).

About

Bot for Slack that fetches Magic: the Gathering card pictures, oracle texts, prices and player's planeswalker points on request.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages