expired uav message
This commit is contained in:
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -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": {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user