mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -35,7 +35,7 @@ module.exports = class SmashBrosCommand extends Command {
|
||||
try {
|
||||
const fighters = await this.fetchFighters();
|
||||
const fighter = fighters.find(fighter => {
|
||||
const search = this.makeSlug(query);
|
||||
const search = this.makeSlug(query).replace('_and_', '_&_');
|
||||
return search === fighter.slug || fighter.alias === search;
|
||||
});
|
||||
if (!fighter) return msg.say('Could not find any results.');
|
||||
|
||||
Reference in New Issue
Block a user