mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 15:58:06 +02:00
Credit Command
This commit is contained in:
@@ -16,6 +16,12 @@ module.exports = class ThreeThousandYearsCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Pokémon X and Pokémon Y',
|
||||
url: 'https://www.pokemon.com/us/pokemon-video-games/pokemon-x-and-pokemon-y/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class BeautifulCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Gravity Falls',
|
||||
url: 'https://disneynow.go.com/shows/gravity-falls'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class BobRossCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Bob Ross',
|
||||
url: 'https://www.bobross.com/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -17,6 +17,12 @@ module.exports = class ChallengerCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Super Smash Bros.',
|
||||
url: 'https://www.smashbros.com/en_US/index.html'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -15,6 +15,12 @@ module.exports = class DexterCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Pokémon TV',
|
||||
url: 'https://www.pokemon.com/us/pokemon-episodes/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class DistractedBoyfriendCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Antonio Guillem',
|
||||
url: 'http://antonioguillem.com/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'otherGirl',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class DrakepostingCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Drake - Hotline Bling',
|
||||
url: 'https://youtu.be/uxpDa-c-4Mc'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'nah',
|
||||
|
||||
@@ -17,6 +17,12 @@ module.exports = class FoodBrokeCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: '@liltusk',
|
||||
url: 'https://twitter.com/liltusk'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class GirlWorthFightingForCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Mulan',
|
||||
url: 'https://movies.disney.com/mulan'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -18,6 +18,28 @@ module.exports = class HatCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'ClipArtHut',
|
||||
url: 'http://www.cliparthut.com/'
|
||||
},
|
||||
{
|
||||
name: 'PNG Arts',
|
||||
url: 'https://www.pngarts.com/'
|
||||
},
|
||||
{
|
||||
name: 'misskatecuttables.com',
|
||||
url: 'https://www.misskatecuttables.com/'
|
||||
},
|
||||
{
|
||||
name: 'WorldArtsMe',
|
||||
url: 'http://worldartsme.com/'
|
||||
},
|
||||
{
|
||||
name: 'PinClipart',
|
||||
url: 'https://www.pinclipart.com/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
|
||||
@@ -17,6 +17,12 @@ module.exports = class HeLivesInYouCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'The Lion King',
|
||||
url: 'https://movies.disney.com/the-lion-king'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -17,6 +17,12 @@ module.exports = class HeartsCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Jessica Knable',
|
||||
url: 'https://picsart.com/jessicaknable'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class IHaveThePowerCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Mattel',
|
||||
url: 'https://www.mattel.com/en-us'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class LookAtThisPhotographCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Nickelback - Photograph',
|
||||
url: 'https://www.youtube.com/watch?v=BB0DU4DoPP4'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class LookWhatKarenHaveCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'KINMOZA!',
|
||||
url: 'http://www.kinmosa.com/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -17,6 +17,12 @@ module.exports = class RipCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'vician',
|
||||
url: 'https://www.123rf.com/profile_vician'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
@@ -29,7 +35,7 @@ module.exports = class RipCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg, { user }) {
|
||||
const avatarURL = user.displayAvatarURL({ format: 'png', size: 256 });
|
||||
const avatarURL = user.displayAvatarURL({ format: 'png', size: 512 });
|
||||
try {
|
||||
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'rip.png'));
|
||||
const { body } = await request.get(avatarURL);
|
||||
@@ -37,8 +43,8 @@ module.exports = class RipCommand extends Command {
|
||||
const canvas = createCanvas(base.width, base.height);
|
||||
const ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(base, 0, 0);
|
||||
ctx.drawImage(avatar, 59, 68, 200, 200);
|
||||
greyscale(ctx, 59, 68, 200, 200);
|
||||
ctx.drawImage(avatar, 194, 399, 500, 500);
|
||||
greyscale(ctx, 194, 399, 500, 500);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'rip.png' }] });
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class SipCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'CoolClips.com',
|
||||
url: 'http://search.coolclips.com/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -19,6 +19,20 @@ module.exports = class SteamCardCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Steam',
|
||||
url: 'https://store.steampowered.com/'
|
||||
},
|
||||
{
|
||||
name: 'SinKillerJ Tachikawa',
|
||||
url: 'https://www.deviantart.com/sinkillerj'
|
||||
},
|
||||
{
|
||||
name: 'Google Noto Fonts',
|
||||
url: 'https://www.google.com/get/noto/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -20,6 +20,16 @@ module.exports = class SteamNowPlayingCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Steam',
|
||||
url: 'https://store.steampowered.com/'
|
||||
},
|
||||
{
|
||||
name: 'Google Noto Fonts',
|
||||
url: 'https://www.google.com/get/noto/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'game',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class UltimateTattooCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Deathbulge',
|
||||
url: 'http://deathbulge.com/comics'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -17,6 +17,12 @@ module.exports = class WantedCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Tim\'s Printables',
|
||||
url: 'https://www.timvandevall.com/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class WorthlessCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Gravity Falls',
|
||||
url: 'https://disneynow.go.com/shows/gravity-falls'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
@@ -16,6 +16,12 @@ module.exports = class YuGiOhTokenCommand extends Command {
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'Yu-Gi-Oh! Trading Card Game',
|
||||
url: 'https://www.yugioh-card.com/en/'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
|
||||
Reference in New Issue
Block a user