This repository was archived by the owner on Jul 17, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ return function ( args ) {
263
263
partitioned = partition ( commands , maxSize ) ,
264
264
265
265
valid = / ^ ( \d + | $ ) / . test ( args . content ) ,
266
- page = Number ( args . content ) || 0 ;
266
+ page = ( Number ( args . content ) - 1 ) || 0 ;
267
267
268
268
if ( page >= partitioned . length || ! valid ) {
269
269
return args . codify ( [
@@ -276,7 +276,7 @@ return function ( args ) {
276
276
277
277
var ret = partitioned [ page ] . join ( ', ' ) ;
278
278
279
- return ret + pagination . supplant ( page , partitioned . length - 1 ) ;
279
+ return ret + pagination . supplant ( ( page + 1 ) , partitioned . length ) ;
280
280
} ;
281
281
} ) ( ) ;
282
282
@@ -491,7 +491,7 @@ var descriptions = {
491
491
' `/help [cmdName]`' ,
492
492
info : 'Grabs some stats on my current instance or a command.' +
493
493
' `/info [cmdName]`' ,
494
- listcommands : 'Lists commands. `/listcommands [page=0 ]`' ,
494
+ listcommands : 'Lists commands. `/listcommands [page=1 ]`' ,
495
495
listen : 'Forwards the message to my ears (as if called without the /)' ,
496
496
live : 'Resurrects me (:D) if I\'m down (D:)' ,
497
497
parse : 'Returns result of "parsing" message according to the my mini' +
You can’t perform that action at this time.
0 commit comments