-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discord bot which check your $KSM balance and NFTs #15
Comments
I was thinking @AndreyGrin might be interested in this kind of hacking? 👀 |
Hey, this looks interesting. I can work on it. |
Can provide a list of testing addresses, i.e. one with balance and with some NFTs on https://kusama.subscan.io/account/CuHWHNcBt3ASMVSJmcJyiBWGxxiWLyjYoYbGjfhL4ovoeSd |
I will start with M1. I guess you already have API key for subscan or should I make a new one? |
Originally thought using polkadotjs, but using Subscan might cut times to verify you I guess (i.e. connecting to chain takes ages) |
Ok, I will request API key from them |
Their free API key has limit of 5 request/second. I guess that's fine for now. I will check what's Polkadot offers as well |
I got my API key, continue setting up. |
Bot now can reads user's wallet balance.
|
For DB we can use free tier on Heroku or Firebase if you don't have any existing one. |
If there are no catches on free tier I would use it.
20-30 min interval should be fine imho |
What should we do when someone sold his KSM? Ban or kick off? |
We could ban until they have some money again |
Interesting that Subscan shows some balance for my account Gai2tc3mZ9u4bLdoXVTfaXjGLerijuXBZawZKTakuVdJuBh but actually I have 0 KSM there. |
What min amount of KSM customers should hold on the wallet? |
If possible, want to make it storage less. Just fetch your balance and then give you attributes, i.e. let you inside
I guess one way would be listening for events but that would be costly, other way around would be yes, having sort of schedule to check every once per hour/day (to save some costs when userbase might grow) |
Kick off-channel, that's purpose, ban would be way too strict :)
I guess starting with 10KSM would be for now default? Oh wait, I would also account if that KSM is staked, that brings bit complication into game I guess 😄
What is scenario?
I would not spam users bc they might can report your bot without no reason:) |
We've chatted with @AndreyGrin that later would be nice to change firebase to something decentralized/distributed, maybe Textile/ThreadDb would be nice to check, maybe https://orbitdb.org/ but seems the recent release wasn't quite along. M3
|
hey, is it still valid? I think, last time I've worked on this, M1 points already completed in that MVP |
I think yes |
Right now we are a bit fighting with spam.
To have quality people in the room, we would like to check if they are holding n amount of KSM (native asset for other parachains) to prove they are believers.
Probably use some serverless implementation, by your choice, probably use basic discord bot example from stdlib - we've got great vibes with them https://autocode.com/app/discord/basic-discord-example/ there are probably more interesting cases https://autocode.com/app/
Tasks are
M1
M2
Check if an address is
Hint you can use our KodaDot SubQuery for M2 - https://github.com/vikiival/magick
The text was updated successfully, but these errors were encountered: