Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 894 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 894 Bytes

Discord-Roles-Claim

A Discord bot that assists in assigning roles after users pm their wallet address to the bot, made in 2020

(In archiving this bot, it was found that the newest version was lost so the function is slightly different than described. But should be easy to re-implment after modification.)

Note that the bot is developed on Replit, so the libraries used are Replit specific!

index.js

It is the main running file. It includes several testing features: replying, pulling quotes from website, detecting & removing erc20 wallet address in server chatroom. $addrole command allows addition of [role] to [member].

(process.env['client_secret.json'] is a Replit specific feature for shielding the secret varaible from public.)

server.js

To keep the bot alive 24/7 on Replit for free, UptimeRobot can be used to ping web server.