Skip to content

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

Notifications You must be signed in to change notification settings

austinsw/Discord-Roles-Claim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published