Advertisement
ii_kinqm1ke

Reverse a word

Jun 6th, 2020
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. commands.on(
  2.   'reverse',
  3.   (args) => ({
  4.     input: args.string()
  5.   }),
  6.   async (message, { input }) => {
  7.     await message.reply(
  8.       input
  9.         .split('')
  10.         .reverse()
  11.         .join('')
  12.     );
  13.   }
  14. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement