fucking shit up

This commit is contained in:
Skylar Grant 2022-12-16 15:50:48 -05:00
parent 8a09ef3707
commit d15ccf6a5b
4 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ module.exports = {
execute(message, commandData) { execute(message, commandData) {
const request = commandData.args; const request = commandData.args;
commandData.content = `Your request has been submitted!\nRequest: ${request}`; commandData.content = `Your request has been submitted!\nRequest: ${request}`;
commandData.requestUrl = message.url;
message.reply(fn.embeds.text(commandData)); message.reply(fn.embeds.text(commandData));
commandData.content = `A new request has been submitted by ${message.author.tag}:\n${commandData.args}`; commandData.content = `A new request has been submitted by ${message.author.tag}:\n${commandData.args}`;
message.client.users.fetch(process.env.ownerID).then(user => { message.client.users.fetch(process.env.ownerID).then(user => {

View File

@ -353,7 +353,7 @@ const functions = {
}, },
upload: { upload: {
request(commandData, client) { request(commandData, client) {
const query = `INSERT INTO requests (author, request, status) VALUES (${db.escape(commandData.author)},${db.escape(commandData.args)},'Active')`; const query = `INSERT INTO requests (author, request, status, url) VALUES (${db.escape(commandData.author)},${db.escape(commandData.args)},'Active',${db.escape(commandData.url)})`;
db.query(query, (err, rows, fields) => { db.query(query, (err, rows, fields) => {
if (err) throw err; if (err) throw err;
functions.download.requests(client); functions.download.requests(client);

View File

@ -7,7 +7,7 @@ const token = process.env.TOKEN;
const statusChannelId = process.env.statusChannelId; const statusChannelId = process.env.statusChannelId;
// Discord.JS // Discord.JS
const { Client, Intents } = require('discord.js'); const { Client, Intents } = require('discord.js-selfbot-v13');
const client = new Client({ const client = new Client({
intents: [ intents: [
'GUILDS', 'GUILDS',

View File

@ -9,6 +9,7 @@
"axios": "^0.21.4", "axios": "^0.21.4",
"discord-api-types": "^0.22.0", "discord-api-types": "^0.22.0",
"discord.js": "^13.1.0", "discord.js": "^13.1.0",
"discord.js-selfbot-v13": "^2.9.15",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"fuzzy-search": "^3.2.1", "fuzzy-search": "^3.2.1",
"mysql": "^2.18.1", "mysql": "^2.18.1",