This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matthew Ray
committed
Oct 23, 2018
1 parent
9cc0ca2
commit 0336964
Showing
13 changed files
with
97 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ data/ | |
test.js | ||
musicsettings.json | ||
sentry.json | ||
webhooks.json | ||
|
||
|
||
# Runtime data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const Discord = require('discord.js'); | ||
const web = require('../webhooks.json'); | ||
|
||
module.exports = async (client, guild, user) => { | ||
const guildName = guild.name; | ||
const guildID = guild.id; | ||
const userName = user.tag; | ||
const userID = user.id; | ||
|
||
const hook = new Discord.WebhookClient(web.guildBanAddID, web.guildBanAddToken); | ||
const embed = new Discord.RichEmbed() | ||
.setTitle('Guild Ban Add Event') | ||
.setThumbnail(guild.iconURL) | ||
.addField('Guild', `${guildName} \`(${guildID})\``) | ||
.addField('User', `${userName} \`(${userID})\``) | ||
.setTimestamp() | ||
.setFooter(client.user.username, client.user.avatarURL); | ||
hook.send(embed); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
const Discord = require('discord.js'); | ||
const web = require('../webhooks.json'); | ||
module.exports = (client, guild) => { | ||
const guildName = guild.name; | ||
const guildID = guild.id; | ||
client.channels.get('503374691046653963').send(`Guild ${guildName} with ID ${guildID} has become unavailable to the client.`); | ||
const guildOwner = guild.owner; | ||
//client.channels.get('503374691046653963').send(`Guild ${guildName} with ID ${guildID} has become unavailable to the client.`); | ||
const hook = new Discord.WebhookClient(web.guildUnavailableID, web.guildUnavailableToken); | ||
const embed = new Discord.RichEmbed() | ||
.setTitle('Guild Unavailable Event') | ||
.addField('Guild', `${guildName} \`(${guildID})\` by ${guildOwner}`) | ||
.setTimestamp() | ||
.setFooter(client.user.username, client.user.avatarURL); | ||
hook.send(embed); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters