Skip to content

theotheo/changetip-slack

 
 

Repository files navigation

ChangeTip Slack Bot

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

Slack Tipping

This repo is managed by the ChangeCoin (ChangeTip) team, but is open source for transparency and educational purposes. Pull requests welcomed!

Tipping

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

Slack setup

To enable tipping in slack for your team, 10 seconds of setup is required. Click this button:

Add to Slack

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. :)

Support

If you have any questions, or recommendations for new features, we'd like to hear from you - support@changetip.com

Contributing

We love pull requests!

Installation to run your own copy

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

Configure the needed variables

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

Running

CHANGETIP_API_KEY=xxxx uwsgi --init uswgi.ini

To get an API key, contact support@changetip.com

License

BSD

About

ChangeTip Slack Tip bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.9%
  • Shell 1.1%