Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-Santana-j committed Dec 10, 2024
1 parent 35f7f42 commit 6ec3f46
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Discord/discordIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2479,16 +2479,24 @@ module.exports.sendProductPayment = async (params, id, type) => {
} else {
refound()
}
let serverID = params.serverID
let userID = params.userID
try {

setTimeout(async () => {
var DiscordServer2 = await client.guilds.cache.get(params.serverID);
let findChannel2 = await DiscordServer2.channels.cache.find(c => c.topic === params.userID)
var DiscordServer2 = await client.guilds.cache.get(serverID);
let findChannel2 = await DiscordServer2.channels.cache.find(c => c.topic === userID)
if (findChannel2) {
findChannel2.delete().catch((err) => { })
}
}, 20000)
} catch (error) { }

}, 60000)
} catch (error) {
var DiscordServer2 = client.guilds.cache.get(serverID);
let findChannel2 = DiscordServer2.channels.cache.find(c => c.topic === userID)
if (findChannel2) {
findChannel2.delete().catch((err) => { })
}
}
}
}

Expand Down
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ const storage = multer.diskStorage({
const upload = multer({ storage });



async function copyAccount() {
let s = await db.findOne({ colecao: 'servers', doc: '1315776941671841792' })
db.create('servers', '1316103661113577495', s)
}





//TODO------------WEB PAGE--------------


Expand Down

0 comments on commit 6ec3f46

Please sign in to comment.