Skip to content

TangleSwap/nft-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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).

Project Structure

.
β”œβ”€β”€ 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

Usage

Discord Privileges

  • Manage Roles
  • The bot owner needs to have 2FA enabled if the server requests it.

Deploying to AWS

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.

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

About

πŸ€– Meet H.U.E. β€” the uber-intelligent AI aboard the Tangleship.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors