File size: 419 Bytes
7f88cfb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'
}