TXT Command

This commit is contained in:
Dragon Fire
2020-06-21 10:58:43 -04:00
parent 76a2154a90
commit ee13f568f8
3 changed files with 26 additions and 2 deletions
+2 -1
View File
@@ -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.
+23
View File
@@ -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' }] });
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.34.4",
"version": "116.35.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {