Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add !camping command for long-term users #11

Open
tiffafoo opened this issue May 4, 2018 · 0 comments
Open

Add !camping command for long-term users #11

tiffafoo opened this issue May 4, 2018 · 0 comments
Labels
command When the issue relates to a bot command enhancement New feature or request

Comments

@tiffafoo
Copy link
Collaborator

tiffafoo commented May 4, 2018

Detailed Description

When sending !camping, the bot will check how long the user has been part of the discord and gives them a Campers role if they have been part of the discord for over a month.

Other criteria may apply, such as having been active in the month or this could be a manual command every month, etc.

Context

I think it will help people feel a sense of community and give incentive to remain active.

Possible Implementation

API: https://discord.js.org/#/docs/main/stable/class/GuildMember?scrollTo=addRole

Pseudo code:

// This would be in queries.js
db.one(`SELECT created_at FROM accounts WHERE id=`)...

// This would be inside commands.js after doing the check
msg.member.addRole(363153390881996820)

You can get the role id by sending \@rolename in the discord server. I did it for @Campers

@tiffafoo tiffafoo added enhancement New feature or request good first issue Good for newcomers command When the issue relates to a bot command labels May 4, 2018
@tiffafoo tiffafoo removed the good first issue Good for newcomers label May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command When the issue relates to a bot command enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant