#TX TipBot For Slack Easily transfer money between team members on your Slack channel.
- With a single message, send and receive TX
- A tip has no transaction fee. There are no extra cost added to your tip.
- Get the fiat prices.
- Sun: every user that tips another user is eligble of recieving from the sun fund.
- Quiz:
- Add a bot integration to Slack here
- Make sure you copy the Slack API token
git clone https://github.com/transferdev/tx-slack-tipbot
cd tx-slack-tipbot
npm install
- Install MongoDB (depending on your OS follow: https://docs.mongodb.com/manual/administration/install-community/ )
Change the YOUR_SLACK_TOKEN
, YOUR_RPC_USER
and YOUR_RPC_PASSWORD
in the below snippet to the API key.
node bot.js --slack-token="YOUR_SLACK_TOKEN" --rpc-user="YOUR_RPC_USER" --rpc-password="YOUR_RPC_PASSWORD"
You can also use ENV variable instead of argument:
TIPBOT_SLACK_TOKEN
TIPBOT_RPC_USER
TIPBOT_RPC_PASSWORD
You can also set the RPC port if you need to, it defaults to 9998
If your wallet is locked (and it should !) provided the passphrase via the --wallet-password
argument or the TIPBOT_WALLET_PASSWORD
enviroment variable.
Optional you can set DEBUG = "tipbot:*"
to see debug messages.
You should use forever to run the bot persistend. Create a json file with all the needed arguments.
You can control / communicate with the tipbot by sending the bot a direct message or mentioning its name in a channel. The tipbot responds to certain 'trigger words' in a sentence, so you can wrap the trigger word in a nice looking sentence and it will work.
For example, to trigger the help
command you can could say hey @tipbot can you help me figure out how tipping works
and the help
in that sentence will trigger displaying the help information.
eg; Hey @tipbot please show me the help info!
eg; Hey @tipbot please tell me my balance.
eg; @tipbot please send .001 TX to @bob
will send 0.001 TX to @bob.
This command has a few aliases which you can use; give
and sent
.
You can also use fiat currencies, they will be converted to the TX value.
eg; @tipbot can you give @bob 1 euro
or @tipbot I'd like you to send @bob 0.5 usd
eg; @tipbot I'd like to deposit to my tip jar.
after you've requested the withdraw the bot will confirm with you if it's OK, replying with yes
, ok
or sure
will make the transaction happen.
eg; @tipbot I want to withdraw 0.5 TX to TaPgrLnmrj1b7495gWKHNq4Zpwx6HZBqyw
eg; _@tipbot what currencies do you know?
eg; _@tipbot price in USD!
eg; @tipbot 1 USD to EUR!_ or; _@tipbot 0.03 TX to GBP
Each user that has tipped another user will receive a sunray (read: Free TX) from the sun fund.
Each question needs to be reviewed by a moderator.
eg; txbot balance check @user
Use case :moderator warning.