LevwTech / wa-gpt

💬 Chat, Create Stickers & Images, Send Voice Notes, Files, and More! 🎨 Start now for free! ✨
https://whatsapp-assistant.com
2 stars 1 forks source link

Create users dynamoDB table #7

Closed LevwTech closed 7 months ago

LevwTech commented 7 months ago

each user document should have 1) userNumber which is the partition key that uniquely identifies the user and 2) The amount of tokens the user has and 3) subscribed flag

When the user first joins, assign 20 tokens for the them, treat each text prompt as 1 token and each media prompt as 4 tokens, after the user's tokens are 0, and if the subscribed flag is false, reply to every message with the payment link

LevwTech commented 7 months ago

added in https://github.com/LevwTech/wa-gpt/commit/68223cbffa4b55216f4ccd2cb5fe40b74809bd96