Skip to content

Commit

Permalink
fixed trigger of cooldown of labs command
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 11, 2023
1 parent 3fa9e45 commit a8074a0
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions src/commands/labs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,20 @@ export default new app.Command({
},
],
async run(message) {
return message.send(
"Not up to date yet (will use forum channels instead)"
)
// const guild = await app.getGuild(message.guild, true)
//
// await lab.query
// .insert({
// guild_id: guild._id,
// url: message.args.url,
// title: message.args.title,
// })
// .onConflict("id")
// .merge()
//
// await app.updateLabsInAffiliationChannels(message)
//
// message.triggerCoolDown()
const guild = await app.getGuild(message.guild, true)

await lab.query
.insert({
guild_id: guild._id,
url: message.args.url,
title: message.args.title,
})
.onConflict("id")
.merge()

//await app.updateLabsInAffiliationChannels(message)

message.triggerCoolDown()
},
}),
],
Expand Down

0 comments on commit a8074a0

Please sign in to comment.