@@ -70,15 +70,15 @@ export class ScreepsAPI extends RawAPI {
70
70
'/api/game/market/orders' : defaultLimit ( 60 , 'hour' ) ,
71
71
'/api/game/market/my-orders' : defaultLimit ( 60 , 'hour' ) ,
72
72
'/api/game/market/stats' : defaultLimit ( 60 , 'hour' ) ,
73
- '/api/game/user/money-history' : defaultLimit ( 60 , 'hour' ) ,
73
+ '/api/game/user/money-history' : defaultLimit ( 60 , 'hour' )
74
74
} ,
75
75
POST : {
76
76
'/api/user/console' : defaultLimit ( 360 , 'hour' ) ,
77
77
'/api/game/map-stats' : defaultLimit ( 60 , 'hour' ) ,
78
78
'/api/user/code' : defaultLimit ( 240 , 'day' ) ,
79
79
'/api/user/set-active-branch' : defaultLimit ( 240 , 'day' ) ,
80
80
'/api/user/memory' : defaultLimit ( 240 , 'day' ) ,
81
- '/api/user/memory-segment' : defaultLimit ( 60 , 'hour' ) ,
81
+ '/api/user/memory-segment' : defaultLimit ( 60 , 'hour' )
82
82
}
83
83
}
84
84
this . on ( 'rateLimit' , limits => {
@@ -90,11 +90,11 @@ export class ScreepsAPI extends RawAPI {
90
90
} )
91
91
this . socket = new Socket ( this )
92
92
}
93
- getRateLimit ( method , path ) {
93
+ getRateLimit ( method , path ) {
94
94
return this . rateLimits [ method ] [ path ] || this . rateLimits . global
95
95
}
96
- get rateLimitResetUrl ( ) {
97
- return `https://screeps.com/a/#!/account/auth-tokens/noratelimit?token=${ this . token . slice ( 0 , 8 ) } `
96
+ get rateLimitResetUrl ( ) {
97
+ return `https://screeps.com/a/#!/account/auth-tokens/noratelimit?token=${ this . token . slice ( 0 , 8 ) } `
98
98
}
99
99
async me ( ) {
100
100
this . user = await this . raw . auth . me ( )
0 commit comments