mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 08:12:04 +02:00
Remove unneeded credit
This commit is contained in:
@@ -102,7 +102,7 @@ Only if you want to use the DECTalk command.
|
||||
18. Start Xiao up!
|
||||
|
||||
## Commands
|
||||
Total: 519
|
||||
Total: 518
|
||||
|
||||
### Utility:
|
||||
|
||||
@@ -531,7 +531,6 @@ Total: 519
|
||||
* **chi-idea:** Sends a "Daddy, I've got an idea!" Takagi-san meme with the text of your choice.
|
||||
* **crush:** Draws an image or a user's avatar as Wolverine's crush.
|
||||
* **cursed-sponge:** Sends a cursed sponge duplicated however many times you want.
|
||||
* **dear-liberals:** Sends a "Dear Liberals" meme with words of your choice.
|
||||
* **deep-fry:** Draws an image or a user's avatar but deep-fried.
|
||||
* **demotivational:** Draws an image or a user's avatar and the text you specify as a demotivational poster.
|
||||
* **dislike:** Sends an "Everyone Disliked That" meme with the image of your choice.
|
||||
@@ -829,8 +828,6 @@ Total: 519
|
||||
- [SauceNAO](https://saucenao.com/) (API)
|
||||
* **butt:**
|
||||
- [iCrawl](https://github.com/iCrawl) ([Code, Concept](https://github.com/iCrawl/Tohru/blob/master/src/commands/fun/butts.js))
|
||||
* **cuteness:**
|
||||
- [AzuraApple](https://github.com/AzuraApple) (Concept)
|
||||
* **friendship:**
|
||||
- [Attype Studio](https://www.dafont.com/fadli-ramadhan-iskandar.d7339) ([Pinky Cupid Font](https://www.dafont.com/pinky-cupid.font))
|
||||
* **name-rater:**
|
||||
@@ -845,8 +842,6 @@ Total: 519
|
||||
- [0vertime-dev](https://github.com/0vertime-dev) (Concept)
|
||||
* **think-of:**
|
||||
- [Attype Studio](https://www.dafont.com/fadli-ramadhan-iskandar.d7339) ([Pinky Cupid Font](https://www.dafont.com/pinky-cupid.font))
|
||||
* **worth:**
|
||||
- [AzuraApple](https://github.com/AzuraApple) (Concept)
|
||||
* **dark-light:**
|
||||
- [u/LennyMcLennington](https://www.reddit.com/user/LennyMcLennington) ([Image](https://www.reddit.com/r/discordapp/comments/8t04ag/this_image_shows_different_text_depending_on/))
|
||||
- [u/AelinSA](https://www.reddit.com/user/AelinSA) ([Image](https://www.reddit.com/r/discordapp/comments/9krnhr/preach_the_message_of_the_möth_with_this_magi))
|
||||
@@ -1382,7 +1377,6 @@ Total: 519
|
||||
- [MatthewThePrep](https://www.deviantart.com/matthewtheprep) ([Ultimate Image](https://www.deviantart.com/matthewtheprep/art/SSBU-Challenger-Approaching-meme-template-800422972))
|
||||
- [Nintendo](https://www.nintendo.com/) ([Original "Super Smash Bros." Game](https://www.smashbros.com/en_US/index.html))
|
||||
* **change-my-mind:**
|
||||
- [Steven Crowder](https://www.youtube.com/StevenCrowder) ([Image](https://twitter.com/scrowder/status/964577508447449088))
|
||||
- [Google](https://www.google.com/) ([Noto Font](https://www.google.com/get/noto/))
|
||||
* **chi-idea:**
|
||||
- [u/THANOS_COPTER](https://www.reddit.com/user/THANOS_COPTER/) ([Image](https://www.reddit.com/r/Takagi_san/comments/gb4wdt/how_far_is_too_far/))
|
||||
@@ -1392,9 +1386,6 @@ Total: 519
|
||||
- [Marvel](https://www.marvel.com/) ([Image, Original "X-Men" Comic](https://www.marvel.com/teams-and-groups/x-men))
|
||||
* **cursed-sponge:**
|
||||
- [Nickelodeon](https://www.nick.com/) ([Image, Original "Spongebob Squarepants" Show](https://www.nick.com/shows/spongebob-squarepants))
|
||||
* **dear-liberals:**
|
||||
- [Turning Point USA](https://www.tpusa.com/) (Image)
|
||||
- [Google](https://www.google.com/) ([Oswald Font](https://fonts.google.com/specimen/Oswald))
|
||||
* **demotivational:**
|
||||
- [Google](https://www.google.com/) ([Noto Font](https://www.google.com/get/noto/))
|
||||
* **dislike:**
|
||||
|
||||
@@ -17,12 +17,6 @@ module.exports = class ChangeMyMindCommand extends Command {
|
||||
},
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'Steven Crowder',
|
||||
url: 'https://www.youtube.com/StevenCrowder',
|
||||
reason: 'Image',
|
||||
reasonURL: 'https://twitter.com/scrowder/status/964577508447449088'
|
||||
},
|
||||
{
|
||||
name: 'Google',
|
||||
url: 'https://www.google.com/',
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const { PermissionFlagsBits } = require('discord.js');
|
||||
const { createCanvas, loadImage } = require('@napi-rs/canvas');
|
||||
const path = require('path');
|
||||
const { wrapText, fillTextWithBreaks } = require('../../util/Canvas');
|
||||
|
||||
module.exports = class DearLiberalsCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'dear-liberals',
|
||||
aliases: ['turning-point-usa', 'ben-shapiro'],
|
||||
group: 'edit-meme',
|
||||
description: 'Sends a "Dear Liberals" meme with words of your choice.',
|
||||
throttling: {
|
||||
usages: 2,
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
||||
credit: [
|
||||
{
|
||||
name: 'Turning Point USA',
|
||||
url: 'https://www.tpusa.com/',
|
||||
reason: 'Image'
|
||||
},
|
||||
{
|
||||
name: 'Google',
|
||||
url: 'https://www.google.com/',
|
||||
reason: 'Oswald Font',
|
||||
reasonURL: 'https://fonts.google.com/specimen/Oswald'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'hashtag',
|
||||
type: 'string',
|
||||
max: 10,
|
||||
validate: hashtag => /^[A-Z0-9]+$/i.test(hashtag)
|
||||
},
|
||||
{
|
||||
key: 'blueText',
|
||||
label: 'blue text',
|
||||
type: 'string',
|
||||
max: 42,
|
||||
parse: blueText => blueText.toUpperCase()
|
||||
},
|
||||
{
|
||||
key: 'redText',
|
||||
label: 'red text',
|
||||
type: 'string',
|
||||
max: 24,
|
||||
parse: redText => redText.toUpperCase()
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg, { hashtag, blueText, redText }) {
|
||||
const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'dear-liberals.png'));
|
||||
const canvas = createCanvas(base.width, base.height);
|
||||
const ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(base, 0, 0);
|
||||
ctx.fillStyle = 'white';
|
||||
ctx.textBaseline = 'top';
|
||||
ctx.font = this.client.fonts.get('Oswald-SemiBold.ttf').toCanvasString(20);
|
||||
ctx.rotate(12.30 * (Math.PI / 180));
|
||||
ctx.fillText(`#${hashtag}`, 200, 210);
|
||||
ctx.rotate(-12.30 * (Math.PI / 180));
|
||||
ctx.fillStyle = '#002046';
|
||||
ctx.font = this.client.fonts.get('Oswald-SemiBold.ttf').toCanvasString(27);
|
||||
const blueLines = wrapText(ctx, blueText, 270);
|
||||
fillTextWithBreaks(ctx, blueLines.join('\n'), 207, 90);
|
||||
ctx.fillStyle = '#c31a41';
|
||||
const redLines = wrapText(ctx, redText, 165);
|
||||
fillTextWithBreaks(ctx, redLines.join('\n'), 326, 236);
|
||||
return msg.say({ files: [{ attachment: canvas.toBuffer('image/png'), name: 'dear-liberals.png' }] });
|
||||
}
|
||||
};
|
||||
@@ -16,13 +16,6 @@ module.exports = class CutenessCommand extends Command {
|
||||
type: 'user',
|
||||
default: msg => msg.author
|
||||
}
|
||||
],
|
||||
credit: [
|
||||
{
|
||||
name: 'AzuraApple',
|
||||
url: 'https://github.com/AzuraApple',
|
||||
reason: 'Concept'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
@@ -16,13 +16,6 @@ module.exports = class WorthCommand extends Command {
|
||||
type: 'user',
|
||||
default: msg => msg.author
|
||||
}
|
||||
],
|
||||
credit: [
|
||||
{
|
||||
name: 'AzuraApple',
|
||||
url: 'https://github.com/AzuraApple',
|
||||
reason: 'Concept'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "155.3.1",
|
||||
"version": "156.0.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user