This repository contains a Node.js-based Reddit TipBot designed to facilitate tipping users with Cannacoins (CC) on the Reddit platform. The tip bot allows users to send and receive CC tokens as tips for valuable contributions or as a way to encourage engagement within the community.
Take a look at our Wiki for more info on usage and installation.
- Tip Command: Users can tip each other by replying to a comment or post with a specific command, such as
!canna 100
, where100
represents the amount. - Balance Inquiry: Users can check their current balance by using the
balance
command. - Deposit Address: Users can get the memo and address used to
deposit
funds into their account. - Withdrawal: Users can withdraw their CC tokens to an external wallet address by using the
send
command.
To install and set up the NodeJS Reddit TipBot locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Stellar-Cannacoin/NodeJS_Reddit_TipBot.git
-
Install the dependencies:
cd NodeJS_Reddit_TipBot && npm install
-
Configure the application:
- Rename the
config.example.json
file toconfig.json
. - Open
config.json
and provide the required configuration details, including your Reddit API credentials, database connection details, and token settings.
- Set up the database:
- Create a new database (e.g., PostgreSQL) and update the connection details in the
config.json
file.
- Run the application:
npm start
The NodeJS Reddit TipBot should now be running on your local machine.
Once the application is up and running, the Reddit TipBot will automatically monitor comments and posts within the specified subreddit(s) for tip commands. Users can interact with the bot by issuing various commands in the subreddit where it is active.
-
Tip: To send a tip to another user, reply to their comment or post with the command
!canna AMOUNT
. ReplaceAMOUNT
with the desired number of tokens. -
Balance: To check your current balance, use the command
!balance
. -
Deposit: To generate a unique deposit address, use the command
!deposit
. The bot will reply with a unique address where others can send you tips or deposits. -
Withdraw: To withdraw your tokens to an external wallet address, use the command
!send AMOUNT ADDRESS
. ReplaceADDRESS
with the recipient's wallet address,AMOUNT
with the number of tokens to be withdrawn.
Contributions to the NodeJS Reddit TipBot project are welcome. If you have any bug fixes, enhancements, or new features to propose, please follow these steps:
- Fork the repository.
- Create a new branch with a descriptive name.
- Make your changes and ensure the code follows the project's coding conventions.
- Commit and push your changes to your forked repository.
- Submit a pull request, describing your changes and the motivation behind them.
Please note that all contributions are subject to