forked from Supositware/Haha-Yes
Removed some useless things
This commit is contained in:
parent
56368acf74
commit
467d282a3c
3 changed files with 3 additions and 4 deletions
|
@ -9,7 +9,6 @@ export default {
|
||||||
category: 'admin',
|
category: 'admin',
|
||||||
async execute(interaction, args, client) {
|
async execute(interaction, args, client) {
|
||||||
const autoresponseStat = await db.autoresponseStat.findOne({ where: { serverID: interaction.guild.id } });
|
const autoresponseStat = await db.autoresponseStat.findOne({ where: { serverID: interaction.guild.id } });
|
||||||
console.log(autoresponseStat);
|
|
||||||
if (!autoresponseStat) {
|
if (!autoresponseStat) {
|
||||||
const body = { serverID: interaction.guild.id, stat: 'enable' };
|
const body = { serverID: interaction.guild.id, stat: 'enable' };
|
||||||
await db.autoresponseStat.create(body);
|
await db.autoresponseStat.create(body);
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { SlashCommandBuilder } from 'discord.js';
|
import { SlashCommandBuilder, EmbedBuilder } from 'discord.js';
|
||||||
import { EmbedBuilder } from 'discord.js';
|
|
||||||
import fetch from 'node-fetch';
|
import fetch from 'node-fetch';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -29,7 +29,8 @@ export default {
|
||||||
async execute(interaction, args, client) {
|
async execute(interaction, args, client) {
|
||||||
const content = args.content;
|
const content = args.content;
|
||||||
const attachment = args.image;
|
const attachment = args.image;
|
||||||
|
console.log(args);
|
||||||
|
console.log(attachment);
|
||||||
if (!content && !attachment) {
|
if (!content && !attachment) {
|
||||||
return interaction.reply({ content: 'Uh oh! You are missing any content for me to tweet!', ephemeral: true });
|
return interaction.reply({ content: 'Uh oh! You are missing any content for me to tweet!', ephemeral: true });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue