TangleSwap NFT Discord Bot π€
Meet H.U.E. β the uber-intelligent AI aboard the Tangleship.
This bot grants members of a Discord server unique roles depending on the specific NFTs they hold, based on a predefined range of collections.
Users must provide their DiscordTag into their Soonaverse profile that is holding the relevant NFT(s).
.
βββ LICENSE
βββ README.md
βββ docs
β βββ HUE.png
βββ package-lock.json
βββ package.json
βββ src
β βββ config-example.ts
β βββ main.ts
β βββ roleManager.ts
β βββ soonaverseApiManager.ts
βββ template.yaml
βββ tsconfig.json
1 directory, 9 files
Manage Roles- The bot owner needs to have 2FA enabled if the server requests it.
An example setup for the Bot can be deploying to AWS inside a lambda function, scheduled to run once per hour. The schedule frequency can be adjusted accordingly as the functionality for the bot is branched out, as well as built in functionality can be implemented to trigger parts of the bot from API endpoints.
The Serverless Application Model Command Line Interface (SAM CLI) is an extension of the AWS CLI that adds functionality for building and testing Lambda applications. It uses Docker to run your functions in an Amazon Linux environment that matches Lambda. It can also emulate your application's build environment and API.
To use the SAM CLI, you need the following tools.
- SAM CLI - Install the SAM CLI
- Node.js - Install Node.js 16, including the NPM package management tool.
- Docker - Install Docker community edition
To build and deploy, run the following in your shell:
sam build --beta-features
# to test the bot locally, NOTE: if credentials are provided in the config file this will run the bot
sam local invoke
# to also deploy after configuring aws credentials
sam deploy --guided