Skip to content

Commit 0da8210

Browse files
committed
Add selected bot groups to suggested parameters
Closes #1682
1 parent 6be2406 commit 0da8210

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/views/Commands.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,15 @@
191191
case '[bots]':
192192
case '<targetbot>':
193193
// eslint-disable-next-line no-case-declarations
194-
const suggestedBot = [...this.$store.getters['bots/bots'].map(bot => bot.name), 'ASF']
194+
const botGroups = ['ASF', '@ALL', '@FARMING', '@IDLE', '@OFFLINE', '@ONLINE'];
195+
196+
// eslint-disable-next-line no-case-declarations
197+
const suggestedBot = [...this.$store.getters['bots/bots'].map(bot => bot.name), ...botGroups]
195198
.find(name => name.startsWith(this.currentParameterValue));
196199
197200
if (suggestedBot) return suggestedBot;
198201
199-
return [...this.$store.getters['bots/bots'].map(bot => bot.name), 'ASF']
202+
return [...this.$store.getters['bots/bots'].map(bot => bot.name), ...botGroups]
200203
.find(name => name.toLowerCase().startsWith(this.currentParameterValue.toLowerCase()));
201204
case '<command>':
202205
return this.allCommandsNames.find(name => name.startsWith(this.currentParameterValue));

0 commit comments

Comments
 (0)