GithubHelp home page GithubHelp logo

thesoftwarejedi / changetip-slack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from changecoin/changetip-slack

0.0 2.0 0.0 83 KB

ChangeTip Slack Tip bot

Home Page: https://www.changetip.com

Python 100.00%

changetip-slack's Introduction

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

Type changetip: at the beginning of a message, 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

In addition to tips, you can also have some fun. Try asking anything.

changetip: what is the answer to everything?
changetip: are you happy?

Before using ChangeTip, you will need to send a message to it so it knows who you are. It's as simple as saying Hi.

changetip: hi!

ChangeTip will respond with instructions on how to hook up your ChangeTip account to slack.

Note: It only works in channels, not private chats, this is because slack doesn't send data for private chats via the webhook.

Slack setup

To enable tipping in slack for your team, 94 seconds of setup is required. LIke this:

Create a new outgoing webhook from:

Go to https://yourdomain.slack.com/services/new/outgoing-webhook

(replace yourdomain with your slack domain)

Create a new "Outgoing Webhook".

  1. Leave the Channel to Any
  2. Set the Trigger Word to changetip,@changetip
  3. Set the URL to https://bots.changetip.com/slack/command-webhook

Like this:

Slack Setup 1

The descriptive label, name, and icon are up to you. If you'd like, you can use this icon https://cdn.changetip.com/img/logos/changetip_round_icon.png .

Note: it looks like there is a bug with slack where if you try to upload the icon while creating the webhook, you lose your data. Recommend you add the Icon after you save the webhook.

Slack Setup 2

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 - [email protected]

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

Running

CHANGETIP_API_KEY=xxxx uwsgi --init uswgi.ini

To get an API key, contact [email protected]

License

BSD

changetip-slack's People

Contributors

technickai avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.