mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Add Zero-Width-Space to all 'Say' and 'Translate' Commands
This commit is contained in:
@@ -35,6 +35,6 @@ module.exports = class PirateCommand extends commando.Command {
|
|||||||
const turnToPirate = args.text;
|
const turnToPirate = args.text;
|
||||||
const pirate = pirateSpeak.translate(turnToPirate);
|
const pirate = pirateSpeak.translate(turnToPirate);
|
||||||
if (pirate.length > 1950) return message.say(':x: Error! Your message is too long!');
|
if (pirate.length > 1950) return message.say(':x: Error! Your message is too long!');
|
||||||
return message.say(pirate);
|
return message.say(`\u180E${pirate}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -23,6 +23,6 @@ module.exports = class ReverseCommand extends commando.Command {
|
|||||||
console.log(`[Command] ${message.content}`);
|
console.log(`[Command] ${message.content}`);
|
||||||
const stringToReverse = args.text;
|
const stringToReverse = args.text;
|
||||||
const reversed = stringToReverse.split('').reverse().join('');
|
const reversed = stringToReverse.split('').reverse().join('');
|
||||||
return message.say(reversed);
|
return message.say(`\u180E${reversed}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,6 +30,6 @@ module.exports = class SayCommand extends commando.Command {
|
|||||||
console.log(`[Command] ${message.content}`);
|
console.log(`[Command] ${message.content}`);
|
||||||
const copycat = args.text;
|
const copycat = args.text;
|
||||||
await message.delete();
|
await message.delete();
|
||||||
return message.say(copycat);
|
return message.say(`\u180E${copycat}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,6 +34,6 @@ module.exports = class ShuffleCommand extends commando.Command {
|
|||||||
}
|
}
|
||||||
console.log(`[Command] ${message.content}`);
|
console.log(`[Command] ${message.content}`);
|
||||||
const thingToShuffle = args.text;
|
const thingToShuffle = args.text;
|
||||||
return message.say(thingToShuffle.shuffle());
|
return message.say(`\u180E${thingToShuffle.shuffle()}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -30,6 +30,6 @@ module.exports = class TemmieCommand extends commando.Command {
|
|||||||
console.log(`[Command] ${message.content}`);
|
console.log(`[Command] ${message.content}`);
|
||||||
const thingToTranslate = args.text;
|
const thingToTranslate = args.text;
|
||||||
const temmized = temmize(thingToTranslate);
|
const temmized = temmize(thingToTranslate);
|
||||||
return message.say(temmized);
|
return message.say(`\u180E${temmized}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ module.exports = class YodaCommand extends commando.Command {
|
|||||||
.query({
|
.query({
|
||||||
sentence: turnToYoda
|
sentence: turnToYoda
|
||||||
});
|
});
|
||||||
return message.say(response.text);
|
return message.say(`\u180E${response.text}`);
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
return message.say(':x: Error! Something went wrong!');
|
return message.say(':x: Error! Something went wrong!');
|
||||||
|
|||||||
@@ -29,6 +29,6 @@ module.exports = class ZalgoCommand extends commando.Command {
|
|||||||
}
|
}
|
||||||
console.log(`[Command] ${message.content}`);
|
console.log(`[Command] ${message.content}`);
|
||||||
const zalgoified = zalgo(args.text);
|
const zalgoified = zalgo(args.text);
|
||||||
return message.say(zalgoified);
|
return message.say(`\u180E${zalgoified}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user