Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
arrumando o welcome/goodbye
Browse files Browse the repository at this point in the history
  • Loading branch information
euandrelucas committed Mar 3, 2021
1 parent a1e4858 commit e6e1e14
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Procfile
main.sh
server.js
package-lock.json
star-developer.zip
src/config/json/botlist.json
src/config/json/config.json
src/config/json/player.json
2 changes: 1 addition & 1 deletion src/events/guildMemberAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = (client) => {
.setDescription(idioma.welcome.message.replace('%m', member).replace('%g', member.guild.name).replace('%c', member.guild.memberCount))

if(welcome) {
client.channels.forge(welcome).send({embed})
client.channels.cache.get(welcome).send({embed})
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/events/guildMemberRemove.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = (client) => {
.setDescription(idioma.leave.message.replace('%m', member).replace('%g', member.guild.name).replace('%c', member.guild.memberCount))

if(welcome) {
client.channels.forge(welcome).send({embed})
client.channels.cache.get(welcome).send({embed})
}
}

Expand Down
5 changes: 5 additions & 0 deletions start.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { exec } = require("child_process")

exec('npm start', (err, out) => {
console.log(out || err)
})

0 comments on commit e6e1e14

Please sign in to comment.