Merge pull request #3 from IrPgFKS0/co-work
Minor Quality of life updates
This commit is contained in:
5 files changed
+14
-19
No files matched your search
+1
-1
@@ -528,7 +528,7 @@ module.exports = {
|
||||
});
|
||||
|
||||
const successWelcomeChannelEmbed = new EmbedBuilder()
|
||||
.setDescription(`Successfully set <#${channel}> as the Welcome Channel.`)
|
||||
.setDescription(`Successfully set <#${welcomeChannel}> as the Welcome Channel.`)
|
||||
.setColor(client.config.Colors.Green);
|
||||
|
||||
return interaction.send({ embeds: [successWelcomeChannelEmbed] });
|
||||
|
||||
+3
-1
@@ -27,6 +27,8 @@ module.exports = {
|
||||
mongoURI: process.env.mongoURI || "mongodb://localhost:27017",
|
||||
dbo: process.env.dbo || "knoldus",
|
||||
Presence: {
|
||||
status: "online", // You can show online, idle, and dnd
|
||||
// type: 2, // Listening
|
||||
// name: "", // What message you want after "Listening to"
|
||||
status: "online", // You can show either "idle", "dnd", "online", or "offline"
|
||||
},
|
||||
}
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
module.exports = async (client) => {
|
||||
(client.Ready = true),
|
||||
client.user.setActivity(
|
||||
client.config.Presence.name,
|
||||
client.config.Presence.type
|
||||
);
|
||||
client.user.setActivity({
|
||||
type: client.config.Presence.type,
|
||||
name: client.config.Presence.name
|
||||
});
|
||||
client.log(`Successfully Logged in as ${client.user.tag}`);
|
||||
client.log(`Ready to serve in ${client.channels.cache.size} channels on ${client.guilds.cache.size} servers, for a total of ${client.users.cache.size} users.`)
|
||||
client.RegisterSlashCommands();
|
||||
|
||||
+4
-10
@@ -13,13 +13,10 @@ class Logger {
|
||||
this.logger.log({
|
||||
level: "info",
|
||||
message:
|
||||
`${d.getHours()}:${
|
||||
d.getMinutes
|
||||
} - ${d.getDate()}:${d.getMonth()}:${d.getFullYear()} | Info: ` + Text,
|
||||
});
|
||||
`${d.getHours()}:${d.getMinutes()} - ${d.getMonth()+1}:${d.getDate()}:${d.getFullYear()} | Info: ` + Text});
|
||||
console.log(
|
||||
colors.green(
|
||||
`${d.getDate()}:${d.getMonth()}:${d.getFullYear()} - ${d.getHours()}:${d.getMinutes()}`
|
||||
`${d.getMonth()+1}:${d.getDate()}:${d.getFullYear()} - ${d.getHours()}:${d.getMinutes()}`
|
||||
) + colors.yellow(" | Info: " + Text)
|
||||
);
|
||||
}
|
||||
@@ -29,13 +26,10 @@ class Logger {
|
||||
this.logger.log({
|
||||
level: "error",
|
||||
message:
|
||||
`${d.getHours()}:${
|
||||
d.getMinutes
|
||||
} - ${d.getDate()}:${d.getMonth()}:${d.getFullYear()} - ${d.getHours()}:${d.getMinutes()}| Error: ` + Text,
|
||||
});
|
||||
`${d.getHours()}:${d.getMinutes()} - ${d.getMonth()+1}:${d.getDate()}:${d.getFullYear()} | Error: ` + Text});
|
||||
console.log(
|
||||
colors.green(
|
||||
`${d.getDate()}:${d.getMonth()}:${d.getFullYear()} - ${d.getHours()}:${d.getMinutes()}`
|
||||
`${d.getMonth()+1}:${d.getDate()}:${d.getFullYear()} - ${d.getHours()}:${d.getMinutes()}`
|
||||
) + colors.yellow(" | Error: ") + colors.red(Text)
|
||||
);
|
||||
}
|
||||
|
||||
+2
-3
@@ -88,6 +88,5 @@ module.exports = {
|
||||
*/
|
||||
|
||||
BanPlayer: async (client, gamertag) => module.exports.HandlePlayerBan(client, gamertag, true),
|
||||
UnbanPlayer: async (client, gamertag) => module.exports.HandlePlayerBan(client, gamertag, false),
|
||||
|
||||
}
|
||||
UnbanPlayer: async (client, gamertag) => module.exports.HandlePlayerBan(client, gamertag, false)
|
||||
}
|
||||
Reference in new issue
Block a user