Skip to content

Commit

Permalink
Merge pull request #31 from Martiiin225/patch-1
Browse files Browse the repository at this point in the history
Fixed reply message when muting for 1 hour
  • Loading branch information
Hab3925 authored May 5, 2021
2 parents 40bb745 + df52240 commit 66eab0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/mute.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ module.exports.run = async (client, message, args) => {
time: args[1] * 3600000 + new Date().getTime()
})
client.mute.set(message.guild.id, obj)
message.channel.send(`Muted ${args[0]} for ${args[1]} hours.`)
client.channels.cache.get(client.logchn.get(message.guild.id)).send(`<@${message.author.id}> muted ${args[0]} for ${args[1]} hours.`)
message.channel.send(`Muted ${args[0]} for ${args[1]} hour(s).`)
client.channels.cache.get(client.logchn.get(message.guild.id)).send(`<@${message.author.id}> muted ${args[0]} for ${args[1]} hour(s).`)

//wait for timer to expire
setTimeout(() => {
Expand Down Expand Up @@ -88,4 +88,4 @@ exports.help = {
hidden: false,
category: "admin",
usage: "mute [@user] (hours)"
}
}

0 comments on commit 66eab0f

Please sign in to comment.