Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

mudkipme/nodebb-plugin-checkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodebb-plugin-checkin

NPM version

A NodeBB plugin to allow user checking-in daily to get reputation reward.

Installation

NPM

This plugin requires NodeBB 1.7.0 or higher and node.js 8 or higher.

After enable this plugin, please drag it to navigation.

Please be careful that the checking-in date is based on the time zone of your server. Most servers have UTC as the default time zone. If this isn't intended, please set TZ environment value to the time zone you want, such as Asia/Shanghai, and restart your NodeBB instance.

Configuration

The default configuration is that a user may get 20 reputation if he/she is the first user to check-in on a certain day, other users may get 5 to 9 reputation. After 7 continuous days, the reward will be 40 for 1st checked-in user, 10-19 for other users. When a user submits the first topic or reply after checking-in, he/she may get doubled reputation award.

You may change the configuration by editing config.json like this:

{
    "checkin": {
        "postReward": true,
        "rewards": [
            {
                "firstReward": 20,
                "minReward": 5,
                "maxReward": 9
            },
            {
                "continuousDay": 7,
                "firstReward": 40,
                "minReward": 10,
                "maxReward": 19
            }
        ]
    }
}

LICENSE

MIT

About

A checking-in and award plugin for NodeBB.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published