This commit is contained in:
Daniel Odendahl Jr
2018-02-19 22:52:58 +00:00
parent a79ac8e5a5
commit e3fe3c08af
+1 -1
View File
@@ -48,7 +48,7 @@ module.exports = class OsuSignatureCommand extends Command {
onlineindicator: '',
xpbar: ''
});
if (text.startsWith('<br />\n<b>Warning</b>')) return msg.say('Could not find any results.');
if (text.includes('<b>Warning</b>')) return msg.say('Could not find any results.');
return msg.say({ files: [{ attachment: body, name: 'osu-signature.png' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);