Skip to content

Add !camping command for long-term users #11

@tiffafoo

Description

@tiffafoo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    commandWhen the issue relates to a bot commandenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions