ChangeTip is a micropayment infrastructure for the web, enabling tips to be sent over social media. This code allows users to tip eachother with slack, using the slack api
This repo is managed by the ChangeCoin (ChangeTip) team, but is open source for transparency and educational purposes. Pull requests welcomed!
Slack tipping uses slash commands. Type /changetip
, then mention a @username and an amount.
Examples:
/changetip Give @victoria $5 for paying for my lunch
/changetip Give @jim a high five for the great work he just did
To enable tipping in slack for your team, 10 seconds of setup is required. Click this button:
Select your team and authorize the request. It will ask for permission to confirm the identities of team members and install a Slack slash command.
That's it! Start tipping! The bot will provide instructions with what to do. Don't be scared. :)
If you have any questions, or recommendations for new features, we'd like to hear from you - support@changetip.com
We love pull requests!
Using a python virtualenv is recommended.
This is a django app. It pulls in the changetip python library. To install the dependencies:
$ pip install -r requirements.txt
Register your application with Slack: https://api.slack.com/applications
Set your Redirect URI to your local environment to enable OAuth. You will likely need to ngrok it. https://mylocaldevenv.io/slack/auth
Set your environment variables:
export SLACK_CLIENT_ID=xxxx
export SLACK_CLIENT_SECRET=xxxx
CHANGETIP_API_KEY=xxxx uwsgi --init uswgi.ini
To get an API key, contact support@changetip.com
BSD