gravidao / old-lunar-assistant-bot Goto Github PK
View Code? Open in Web Editor NEWLunar Assistant is a CosmWasm Discord bot for verifiable NFT ownership and dynamic role distribution.
Lunar Assistant is a CosmWasm Discord bot for verifiable NFT ownership and dynamic role distribution.
Notes:
Instead of all or nothing, we should implement best effort for getWalletContents.
Currently all of the lunar-configure command definitions are in a single file, but it would be nice to break them up into multiple files.
Currently ownership of an NFT is checked by querying the tokens of a user according to a specific smart contract.
Ideally we would move this validation approach off chain for performance reasons, potentially with the help of the randomearth nft indexer.
Upon community request and vote, the default response when running the lunar-view-roles
command should be set to Private
Within lunar-assistant-bot/blob/main/src/commands/lunar-view-roles.ts
Change line 29:
const privateResponse = rawPrivateResponse ? rawPrivateResponse : false;
to
const privateResponse = rawPrivateResponse ? rawPrivateResponse : true;
Currently a user registers a wallet on the frontend and isn't given any information about the roles they are eligible for on Discord.
Instead, show the user what roles they are eligible on the frontend upon registering a wallet.
Title is pretty much self-explanatory...
If the role name is changed after the configuration has been done, the bot doesn't work anymore...
This doesn't quite make any sense IMHO, as the bots should be agnostic of any human (re)naming action.
Should be an easy fix, but we need to understand what are the ramifications of doing such an update (what happens to the already configured roles everywhere until now).
Currently the configuration / functionality of Lunar Assistant is relatively limited. Each discord server can just specify a single contract from which to give roles based on the ownership of a single NFT.
Improve this system by using "rules". A server can configure multiple rules, each of which specifies a type of asset, a threshold quantity of that asset, and the role to be given upon a user meeting the threshold.
Right now a user's nft ownership if verified upon linking a wallet and then never again.
We should set up a process for removing roles from users who sell their nfts, and for adding roles to users that buy nfts.
Two possible approaches
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.