fix/bot admin ping role

This commit is contained in:
SowinskiBraeden committed 2024-11-10 18:39:10 -08:00
1 parent 5859c07571
commit a536bc1045
3 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -203,9 +203,9 @@ module.exports = {
] ]
}, },
{ {
name: "admin_role", name: "admin_ping_role",
description: "Admin role to ping in admin logs channel", description: "Admin role to ping in admin logs channel",
value: "admin_role", value: "admin_ping_role",
type: CommandOptions.SubCommand, type: CommandOptions.SubCommand,
options: [{ options: [{
name: "role", name: "role",
@@ -593,7 +593,7 @@ module.exports = {
} }
case 'admin_role': case 'admin_ping_role':
client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID},{$set: {"server.adminRole": args[0].options[0].value}}, (err, res) => { client.dbo.collection("guilds").updateOne({"server.serverID":GuildDB.serverID},{$set: {"server.adminRole": args[0].options[0].value}}, (err, res) => {
if (err) return client.sendInternalError(interaction, err); if (err) return client.sendInternalError(interaction, err);
}); });
+1
View File
@@ -94,6 +94,7 @@ module.exports = {
linkedGamertagRole: "", linkedGamertagRole: "",
memberRole: "", memberRole: "",
adminRole: "",
combatLogTimer: 5, // minutes combatLogTimer: 5, // minutes
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayzr-bot", "name": "dayzr-bot",
"version": "13.3.9", "version": "13.3.10",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {