Compare commits

..

2 commits

Author SHA1 Message Date
5cc94e54a3 Added some aliases 2023-04-15 19:49:36 +02:00
d925e62004 "using slash" instead of "with slash" 2023-04-15 19:48:08 +02:00
6 changed files with 8 additions and 4 deletions

View file

@ -27,6 +27,7 @@ export default {
.setDescription('What do you want the AI to generate?') .setDescription('What do you want the AI to generate?')
.setRequired(true)), .setRequired(true)),
category: 'AI', category: 'AI',
alias: ['i2i'],
async execute(interaction, args, client) { async execute(interaction, args, client) {
await interaction.deferReply(); await interaction.deferReply();

View file

@ -23,6 +23,7 @@ export default {
.setDescription('What do you want the AI to generate?') .setDescription('What do you want the AI to generate?')
.setRequired(true)), .setRequired(true)),
category: 'AI', category: 'AI',
alias: ['t2i'],
async execute(interaction, args, client) { async execute(interaction, args, client) {
await interaction.deferReply(); await interaction.deferReply();
generate(interaction, args.prompt, client); generate(interaction, args.prompt, client);

View file

@ -20,6 +20,7 @@ export default {
.setDescription('The audio that will become image.') .setDescription('The audio that will become image.')
.setRequired(true)), .setRequired(true)),
category: 'fun', category: 'fun',
alias: ['a2i'],
async execute(interaction, args) { async execute(interaction, args) {
if (!args.audio) return interaction.reply('Please attach an image with your message.'); if (!args.audio) return interaction.reply('Please attach an image with your message.');

View file

@ -20,6 +20,7 @@ export default {
.setDescription('The image that will become audio. Only tested with png and jpg.') .setDescription('The image that will become audio. Only tested with png and jpg.')
.setRequired(true)), .setRequired(true)),
category: 'fun', category: 'fun',
alias: ['i2a'],
async execute(interaction, args) { async execute(interaction, args) {
if (!args.img) return interaction.reply('Please attach an image with your message.'); if (!args.img) return interaction.reply('Please attach an image with your message.');

View file

@ -30,10 +30,10 @@ export default {
const isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } }); const isOptOut = await db.optout.findOne({ where: { userID: interaction.user.id } });
if (isOptOut) { if (isOptOut) {
console.log(`A user launched command \x1b[33m${commandName}\x1b[0m with slash`); console.log(`A user launched command \x1b[33m${commandName}\x1b[0m using slash`);
} }
else { else {
console.log(`\x1b[33m${userTag} (${userID})\x1b[0m launched command \x1b[33m${commandName}\x1b[0m with slash`); console.log(`\x1b[33m${userTag} (${userID})\x1b[0m launched command \x1b[33m${commandName}\x1b[0m using slash`);
} }

View file

@ -296,10 +296,10 @@ export default {
const isOptOut = await db.optout.findOne({ where: { userID: message.author.id } }); const isOptOut = await db.optout.findOne({ where: { userID: message.author.id } });
if (isOptOut) { if (isOptOut) {
console.log(`A user launched command \x1b[33m${commandName}\x1b[0m with prefix`); console.log(`A user launched command \x1b[33m${commandName}\x1b[0m using prefix`);
} }
else { else {
console.log(`\x1b[33m${userTag} (${userID})\x1b[0m launched command \x1b[33m${commandName}\x1b[0m with prefix`); console.log(`\x1b[33m${userTag} (${userID})\x1b[0m launched command \x1b[33m${commandName}\x1b[0m using prefix`);
} }
// Owner only check // Owner only check