mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
TXT Command
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.34.4",
|
||||
"version": "116.35.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user