expired uav message

This commit is contained in:
SowinskiBraeden committed 2023-04-16 13:00:28 -07:00
1 parent 040778e2b6
commit 953c8213b7
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayz-armbands", "name": "dayz-armbands",
"version": "6.4.2", "version": "6.5.0",
"description": "A General Purpose Discord Bot for DayZ Servers.", "description": "A General Purpose Discord Bot for DayZ Servers.",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {
+6
View File
@@ -78,6 +78,12 @@ module.exports = {
uavs.splice(i, 1); uavs.splice(i, 1);
update = true; update = true;
let expired = new EmbedBuilder().setColor(client.config.Colors.Red).setDescription("**Low Battery**\nUAV has run out of battery and is no longer active.");
client.users.fetch(uav.owner, false).then((user) => {
user.send({ embeds: [expired] });
});
} }
if (update) { if (update) {