diff --git a/README.md b/README.md index 60bf0f09..eac9de4e 100644 --- a/README.md +++ b/README.md @@ -227,7 +227,7 @@ in the appropriate channel's topic to use it. ## Commands -Total: 496 +Total: 497 ### Utility: @@ -721,6 +721,7 @@ Total: 496 * **tebahpla:** Reverses the alphabet of text. * **temmie:** Converts text to Temmie speak. * **translate:** Translates text to a specific language. +* **txt:** Generates a TXT file from the text you provide. * **unspoiler:** Removes all spoilers from a message. * **uppercase:** Converts text to uppercase. * **upside-down:** Flips text upside-down. diff --git a/commands/edit-text/txt.js b/commands/edit-text/txt.js new file mode 100644 index 00000000..096a54cf --- /dev/null +++ b/commands/edit-text/txt.js @@ -0,0 +1,23 @@ +const Command = require('../../structures/Command'); + +module.exports = class TxtCommand extends Command { + constructor(client) { + super(client, { + name: 'txt', + group: 'edit-text', + memberName: 'txt', + description: 'Generates a TXT file from the text you provide.', + args: [ + { + key: 'content', + prompt: 'What content do you want to include in the TXT file?', + type: 'string' + } + ] + }); + } + + run(msg, { content }) { + return msg.say({ files: [{ attachment: Buffer.from(content), name: 'txt.txt' }] }); + } +}; diff --git a/package.json b/package.json index acfa1b89..ccd48063 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "116.34.4", + "version": "116.35.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {