Pendigard's picture
Upload folder using huggingface_hub (part 93)
7f88cfb verified
Raw History Blame Contribute Delete
419 Bytes
exports.run = async (bot, msg, args) => {
if (!args.length) {
return msg.error('No texts provided to flip!')
}
const content = args.join(' ')
const flipped = []
for (const c of content) {
flipped.push(bot.consts.flippedChars[c] || c)
}
return msg.edit(flipped.reverse().join(''))
}
exports.info = {
name: 'flip',
usage: 'flip <text>',
description: 'Flip text',
credits: '1Computer1'
}