add more debug tools, and email me on error

This commit is contained in:
Tyler Renelle
2013-02-06 02:42:48 -05:00
parent a0c4480c53
commit 0e6d08e16b
5 changed files with 53 additions and 15 deletions
+13
View File
@@ -0,0 +1,13 @@
moment = require 'moment'
module.exports.app = (appExports, model) ->
user = model.at('_user')
appExports.emulateNextDay = ->
yesterday = +moment().subtract('days', 1).toDate()
user.set 'lastCron', yesterday
window.location.reload()
appExports.cheat = ->
user.incr 'stats.exp', 20
user.incr 'stats.gp', 1000