mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
Delete in say, XiaoBot -> Xiao
This commit is contained in:
@@ -280,8 +280,8 @@ served over 10,000 servers with a uniquely devoted fanbase.
|
||||
### Text Manipulation:
|
||||
|
||||
* **alphabet-reverse**: Reverses the alphabet of text.
|
||||
* **base64**: Converts text to Base64.
|
||||
* **binary**: Converts text to binary.
|
||||
* **base64**: Converts text to/from Base64.
|
||||
* **binary**: Converts text to/from binary.
|
||||
* **braille**: Converts text to braille.
|
||||
* **clap**: Sends 👏 text 👏 like 👏 this.
|
||||
* **cow-say**: Makes a cow say your text.
|
||||
@@ -302,7 +302,7 @@ served over 10,000 servers with a uniquely devoted fanbase.
|
||||
* **pirate**: Converts text to pirate.
|
||||
* **repeat**: Repeat text over and over and over and over (etc).
|
||||
* **reverse**: Reverses text.
|
||||
* **say**: Make XiaoBot say what you wish.
|
||||
* **say**: Make me say what you want, master.
|
||||
* **sha-256**: Creates a hash of text with the SHA-256 algorithm.
|
||||
* **ship-name**: Creates a ship name from two names.
|
||||
* **shorten-url**: Creates a goo.gl short URL from another URL.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"{{name}} likes dogs.\n{{name}} doesn't bring his dogs\nto your house uninvited.",
|
||||
"{{name}} likes to go bowling.\n{{name}} doesn't put up bumpers.",
|
||||
"{{name}} eats pant.",
|
||||
"{{name}} likes to use XiaoBot.\n{{name}} doesn't complain when\nit goes closed source.",
|
||||
"{{name}} likes to use Xiao.\n{{name}} doesn't complain when\nit goes closed source.",
|
||||
"{{name}} loves to buy shoes.\n{{name}} doesn't buy 200 pairs for no reason.",
|
||||
"{{name}} doesn't like dogs.\n{{name}} doesn't complain on the internet\nbecause he knows no one cares.",
|
||||
"{{name}}.\nEnough said.",
|
||||
|
||||
@@ -9,7 +9,7 @@ module.exports = class Base64Command extends Command {
|
||||
aliases: ['base-64'],
|
||||
group: 'text-edit',
|
||||
memberName: 'base64',
|
||||
description: 'Converts text to Base64.',
|
||||
description: 'Converts text to/from Base64.',
|
||||
details: `**Modes**: ${modes.join(', ')}`,
|
||||
args: [
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ module.exports = class BinaryCommand extends Command {
|
||||
name: 'binary',
|
||||
group: 'text-edit',
|
||||
memberName: 'binary',
|
||||
description: 'Converts text to binary.',
|
||||
description: 'Converts text to/from binary.',
|
||||
details: `**Modes**: ${modes.join(', ')}`,
|
||||
args: [
|
||||
{
|
||||
|
||||
@@ -7,18 +7,23 @@ module.exports = class SayCommand extends Command {
|
||||
aliases: ['copy', 'echo'],
|
||||
group: 'text-edit',
|
||||
memberName: 'say',
|
||||
description: 'Make XiaoBot say what you wish.',
|
||||
description: 'Make me say what you want, master.',
|
||||
args: [
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like XiaoBot to say?',
|
||||
prompt: 'What text would you like me to say?',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { text }) {
|
||||
return msg.say(text);
|
||||
async run(msg, { text }) {
|
||||
try {
|
||||
if (msg.channel.type === 'text' && msg.deletable) await msg.delete();
|
||||
return msg.say(text);
|
||||
} catch (err) {
|
||||
return msg.say(text);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -24,9 +24,11 @@ module.exports = class WebhookCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg, { content }) {
|
||||
if (msg.channel.type === 'text') await msg.delete();
|
||||
try {
|
||||
await snekfetch.post(`https://discordapp.com/api/webhooks/${WEBHOOK_ID}/${WEBHOOK_TOKEN}`).send({ content });
|
||||
if (msg.channel.type === 'text' && msg.deletable) await msg.delete();
|
||||
await snekfetch
|
||||
.post(`https://discordapp.com/api/webhooks/${WEBHOOK_ID}/${WEBHOOK_TOKEN}`)
|
||||
.send({ content });
|
||||
return null;
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
@@ -15,7 +15,7 @@ module.exports = class DonateCommand extends Command {
|
||||
|
||||
run(msg) {
|
||||
return msg.say(stripIndents`
|
||||
Contribute to XiaoBot development!
|
||||
Contribute to Xiao development!
|
||||
<https://www.patreon.com/dragonfire535>
|
||||
<https://paypal.me/dragonfire535>
|
||||
`);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "73.2.7",
|
||||
"version": "73.2.8",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user