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

Commit

Permalink
qualquer coisa
Browse files Browse the repository at this point in the history
  • Loading branch information
euandrelucas committed Mar 2, 2021
1 parent a0e16f6 commit a1e4858
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
/Arquivo
/node_modules

# HOST FILES

Procfile

# CONFIDENCIAL FILES

.env
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"canvas": "^2.6.1",
"colors": "^1.4.0",
"dblapi.js": "^2.4.1",
"discord-backup": "^2.4.1",
"discord-image-generation": "^1.4.7",
"discord.js": "^12.5.1",
Expand Down
4 changes: 4 additions & 0 deletions src/events/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ const webhookClient = new (require("discord.js")).WebhookClient(votelog.votehook

module.exports = (client) => {
client.on('message', async msg => {

var message = msg;

verificaVotos(message, (user) => {

const embed = new (require("discord.js")).MessageEmbed()
.setAuthor("Zuraaa! List", "https://images-ext-2.discordapp.net/external/QondZexyo8Jz5Dw7HVLUo8d8Wz2p67sCpmxoIarF0AQ/%3Fsize%3D2048/https/cdn.discordapp.com/icons/528352472389910529/6670a5b9acf73a9cf72095a97e2dd647.png?width=325&height=325", "https://zuraaa.com/bots/719524114536333342")
.setDescription(`🥳 › **${user.username}** votou em mim, [vote](https://www.zuraaa.com/bots/719524114536333342) você também e seja uma pessoa incrivel`)
Expand All @@ -26,11 +28,13 @@ module.exports = (client) => {
user.send('<:wumplus:801507706807517234> › Obrigado por votar em mim!').catch(e => {
console.log("[VOTOS] | DM Fechada, bruh")
})

webhookClient.send({
username: client.user.username,
avatarURL: client.user.displayAvatarURL({dynamic:true}),
embeds: [embed],
})

});

if (msg.author.bot) return;
Expand Down

0 comments on commit a1e4858

Please sign in to comment.