This commit is contained in:
Dragon Fire
2021-03-28 22:22:33 -04:00
parent a4d3e8c142
commit 6a1ed4c2c5
+1 -1
View File
@@ -38,7 +38,7 @@ module.exports = class NsfwCommand extends Command {
const predictions = await isImageNSFW(this.client.nsfwModel, body, false);
const formatted = predictions.map(result => {
const percentage = Math.round(result.probability * 100);
return `${percentage}% ${displayNames[result.className]}`
return `${percentage}% ${displayNames[result.className]}`;
});
return msg.reply(stripIndents`
**This image gives the following results:**