Skip to content

Commit

Permalink
gay
Browse files Browse the repository at this point in the history
  • Loading branch information
Catalizcs committed Sep 20, 2020
1 parent cf0db4f commit 64d238f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/handle/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ module.exports = function({ api, config, __GLOBAL, models, User, Thread, Rank, E
}

//changemymind
if (contentMessage.indexOf(`${prefix}changemymind`) == 0) {
if (contentMessage.indexOf(`${prefix}cmm`) == 0) {
const wrapText = (ctx, text, maxWidth) => {
return new Promise(resolve => {
if (ctx.measureText(text).width < maxWidth) return resolve([text]);
Expand Down Expand Up @@ -732,7 +732,7 @@ module.exports = function({ api, config, __GLOBAL, models, User, Thread, Rank, E
return resolve(lines);
});
}
var content = contentMessage.slice(prefix.length + , contentMessage.length);
var content = contentMessage.slice(prefix.length + 4, contentMessage.length);
const { createCanvas, loadImage, registerFont, toBuffer } = require('canvas');
const path = require('path');
const __root = path.resolve(__dirname, "./src/meme-template");
Expand Down

0 comments on commit 64d238f

Please sign in to comment.