项目作者: mjlescano

项目描述 :
💸 IOU Slack Bot - Keep track of your debts with your peers.
高级语言: JavaScript
项目地址: git://github.com/mjlescano/iou-slack-bot.git
创建时间: 2015-10-23T18:16:38Z
项目社区:https://github.com/mjlescano/iou-slack-bot

开源协议:Other

下载


IOU Slack Bot

Keep track of your debts with your peers.

Commands

  1. iou # Shows all your debts
  2. iou @user # Get a list of your accounts with @user
  3. iou @user $20 # Add $20 to your debt to @user (the "$" is optional)
  4. ask @user $20 # Make @user owe you $20 more
  5. iou help # Shows this message
  6. iou history # Shows a list of all the transactions you where involved

Install

1. Deploy

You can simply deploy it on Heroku by pressing this button:

Deploy

Or just run it on your own server:

  1. Setup a MongoDB instance, and configure the url with on the environment variable MONGO_URL.
  2. Generate a random token (maybe here?), and set it on the env var TOKEN.
  3. Start the bot with npm start.

2. Configure it on your Slack Team

Create an “Outgoing WebHook” here. With this settings (change them as you wish, very opinionated):

  • Channel: #iou
  • Trigger Word(s): iou,ask
  • URL(s): The url of your server with a trailing /bot. e.g.: https://iou-slack-bot.herokuapp.com/bot
  • Token: The TOKEN you generated on “Deploy” step. (if heroku, get it with heroku config:get TOKEN)
  • Descriptive Label: iou
  • Customize Name: IOU Slack Bot
  • Customize Icon: :money_with_wings: emoji. THIS IS THE MOST IMPORTANT SETTING :scream:

3. Ω

Tests

Meh.

License

GPL-v3