Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ac2774c4f | |||
| 83990a36dc | |||
| c427d7c313 | |||
| 8b1977b53e | |||
| 189f7fe4ee |
@@ -137,7 +137,7 @@ module.exports = async function(robot, kredits) {
|
|||||||
|
|
||||||
function createProposalForUserChanges (user, changes) {
|
function createProposalForUserChanges (user, changes) {
|
||||||
const details = analyzeUserChanges(user, changes);
|
const details = analyzeUserChanges(user, changes);
|
||||||
const amount = calculateAmountForChanges(changes);
|
const amount = calculateAmountForChanges(details);
|
||||||
|
|
||||||
let desc = `Added ${details.charsAdded} characters of text.`;
|
let desc = `Added ${details.charsAdded} characters of text.`;
|
||||||
if (details.pagesChanged.length > 0) {
|
if (details.pagesChanged.length > 0) {
|
||||||
@@ -171,6 +171,6 @@ module.exports = async function(robot, kredits) {
|
|||||||
.then(() => updateTimestampForNextFetch());
|
.then(() => updateTimestampForNextFetch());
|
||||||
}
|
}
|
||||||
|
|
||||||
cron.schedule('* 7 * * *', processWikiChangesSinceLastRun);
|
cron.schedule('0 7 * * *', processWikiChangesSinceLastRun);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hubot-kredits",
|
"name": "hubot-kredits",
|
||||||
"version": "2.1.1",
|
"version": "2.1.3",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hubot-kredits",
|
"name": "hubot-kredits",
|
||||||
"version": "2.1.1",
|
"version": "2.1.3",
|
||||||
"description": "Kosmos Kredits functionality for chat bots",
|
"description": "Kosmos Kredits functionality for chat bots",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user