Download pool/shard008/JavaScript/0050225_flip.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard008/JavaScript/0050225_flip.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard008/JavaScript/0050225_flip.js
-
curl -L -o 0050225_flip.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard008/JavaScript/0050225_flip.js
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' | |
| } | |