mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
Fix Stuff
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = class CleverbotCommand extends Command {
|
||||
]
|
||||
});
|
||||
|
||||
this.clevs = new Cleverbot.Client({
|
||||
this.clevs = new Cleverbot({
|
||||
key: CLEVS_KEY,
|
||||
user: CLEVS_USER,
|
||||
nick: CLEVS_NICK
|
||||
|
||||
@@ -39,6 +39,6 @@ module.exports = class MemeCommand extends Command {
|
||||
|
||||
run(msg, args) {
|
||||
const { type, top, bottom } = args;
|
||||
return msg.say({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] });
|
||||
return msg.say(`https://memegen.link/${type}/${top}/${bottom}.jpg`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const path = require('path');
|
||||
|
||||
module.exports = class SpamCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -13,6 +12,6 @@ module.exports = class SpamCommand extends Command {
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'spam.png')] });
|
||||
return msg.say('https://i.imgur.com/arx7GJV.jpg');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -25,12 +25,9 @@ module.exports = class StarCommand extends Command {
|
||||
async run(msg, args, reaction) {
|
||||
const { id } = args;
|
||||
const channel = msg.guild.channels.get(msg.guild.settings.get('starboard'));
|
||||
if (!channel || this.starred.includes(id)) return null;
|
||||
if (!channel.permissionsFor(this.client.user).has('SEND_MESSAGES')) return null;
|
||||
if (!channel || !channel.permissionsFor(this.client.user).has('SEND_MESSAGES') || this.starred.includes(id)) return null;
|
||||
const message = await msg.channel.fetchMessage(id);
|
||||
if (!reaction && msg.author.id === message.author.id) {
|
||||
return msg.reply('You cannot star your own messages, baka.');
|
||||
}
|
||||
if (!reaction && msg.author.id === message.author.id) return msg.reply('You cannot star your own messages, baka.');
|
||||
this.starred.push(id);
|
||||
if (!channel.permissionsFor(this.client.user).has('EMBED_LINKS')) {
|
||||
return msg.say(stripIndents`
|
||||
|
||||
Reference in New Issue
Block a user