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

Commit

Permalink
fix: fixed promptLimit to work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
animafps committed Jan 5, 2021
1 parent 3f1ab27 commit 06159ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ client
.on('debug', console.log)
.on('ready', () => {
client.user.setActivity('/help | animafps.github.io');
client.registry.commands.forEach(c => (c.argsCollector.promptLimit = 0));
console.log(
`Client ready; logged in as ${client.user.username}#${client.user.discriminator} (${client.user.id})`
);
Expand Down Expand Up @@ -61,6 +60,10 @@ 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()
Expand Down

0 comments on commit 06159ab

Please sign in to comment.