The NEST Prize Bot is a tool developed by our team for the activity of the NEST community. It can record the receipt of Prize and export them.
This repository contains:
- The bot main program
- The contract interface used by the bot
- Get the function source code of the condition interface
Our development team has developed countless telegram bots for rewarding active users, which is a very exhausting job. Therefore, we decided to develop a general-purpose bot that can help members of the NEST community to distribute and receive NEST red packets in Telegram groups.
The goals for this repository are:
- Record the receipt of NEST Prize
- Export all the receipt data
- Reduce the cost of reward distribution and reduce transaction errors
- Anti cheating
This project uses a serverless architecture design, so you need to be familiar with AWS related services, including: Lambda, DynamoDB, IAM, CloudWatch, etc.
$ npm install
You need to replace some configuration in the source code, including:
- Create a new Telegram bot account and configure its token in Lambda's environment variables
- Modify the whitelist of administrators in the original code,
WHITELIST
- Need to create a DynamoDB database
Attribute Name | Type | Description |
---|---|---|
chat_id |
Number |
pk of table |
message_id |
Number |
sk of table |
status |
String |
pk of GSI(status-index) |
Attribute Name | Type | Description |
---|---|---|
user_id |
Number |
pk |
wallet |
Number |
pk of GSI(wallet-index) |
- telegraf
- wizardingpay-telegram-bot is a log-free escrow wallet that supports use in various social software such as Telegram or Discord.
Feel free to dive in! Open an issue or submit PRs.
This project exists thanks to all the people who contribute.
MIT © NEST Protocol