Skip to content

Commit

Permalink
updated config example + some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
notscrappie committed Dec 10, 2022
1 parent fbb9ae4 commit db06fc2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 26 deletions.
3 changes: 1 addition & 2 deletions src/events/guild/guildCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ module.exports = {
* @param {Guild} guild
* @param {Client} client
*/

async execute(guild, client) {
const webhook = new WebhookClient({ url: client.config.watcherHook });
const webhook = new WebhookClient({ url: client.config.debug.watcherHook });

await GDB.create({ id: guild.id });

Expand Down
8 changes: 4 additions & 4 deletions src/events/guild/guildDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ module.exports = {
* @param {Guild} guild
* @param {Client} client
*/
execute(guild, client) {
const webhook = new WebhookClient({ url: client.config.watcherHook });
async execute(guild, client) {
const webhook = new WebhookClient({ url: client.config.debug.watcherHook });

GDB.findOneAndDelete({
await GDB.findOneAndDelete({
id: guild.id,
});

const embed = new EmbedBuilder()
.setColor("Blurple")
.setTitle("Guild Left")
.setDescription(`Aeolian has been left a guild.`)
.setDescription(`Evelyn has been left a guild.`)
.setThumbnail(guild.iconURL({ dynamic: true }))
.addFields(
{ name: "Name", value: `${guild.name}` },
Expand Down
47 changes: 27 additions & 20 deletions src/structures/configexample.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"token": "",
"database": "",
"devGuild": "",
"ownerIDs": [""],

"clientID": "",
Expand All @@ -10,23 +9,31 @@
"cattoKey": "",
"imdbAPIKey": "",

"watcherHook": "",

"DBDLicense": "",
"redirectUri": "http://localhost/discord/callback",
"domain": "http://localhost",

"PerspectiveAPIKey": "",

"spotifyClientID": "",
"spotifySecret": "",

"nodes": [
{
"name": "",
"url": "",
"auth": "",
"secure": true
}
]
"debug": {
"devGuild": "",
"overwatchChannel": "",
"statKey": "",
"watcherHook": ""
},
"API": {
"cattoKey": "",
"imdbAPIKey": ""
},
"dash": {
"DBDLicense": "",
"redirectUri": "http://localhost/discord/callback",
"domain": "http://localhost"
},
"music": {
"spotifyClientID": "",
"spotifySecret": "",
"nodes": [
{
"name": "",
"url": "",
"auth": "",
"secure": false
}
]
}
}

0 comments on commit db06fc2

Please sign in to comment.