Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
fix(index.js): fixed it not changing the Prefix Limit
Browse files Browse the repository at this point in the history
  • Loading branch information
animafps committed Jan 6, 2021
1 parent 15312ec commit df94dc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ client

client.setProvider(new commando.SyncSQLiteProvider(db));

client.registry.commands
.filter(c => c.argsCollector)
.forEach(c => (c.argsCollector.promptLimit = 0));

client.registry
.registerGroup('math', 'Math')
.registerDefaults()
.registerTypesIn(path.join(__dirname, '/src/types'))
.registerCommandsIn(path.join(__dirname, '/src/commands'));

client.registry.commands
.filter(c => c.argsCollector)
.forEach(c => (c.argsCollector.promptLimit = 0));

client.login(token);

0 comments on commit df94dc3

Please sign in to comment.