4.2.1 debug factions command with 0 factions
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -29,10 +29,14 @@ module.exports = {
|
|||||||
|
|
||||||
let description = '';
|
let description = '';
|
||||||
|
|
||||||
|
if (GuildDB.usedArmbands.length == 0) {
|
||||||
|
description = '> There are no factions that have claimed armbands.';
|
||||||
|
} else {
|
||||||
for (const [factionID, data] of Object.entries(GuildDB.factionArmbands)) {
|
for (const [factionID, data] of Object.entries(GuildDB.factionArmbands)) {
|
||||||
if (description == "") description += `> <@&${factionID}> - ${data.armband}`;
|
if (description == "") description += `> <@&${factionID}> - ${data.armband}`;
|
||||||
else description += `\n> <@&${factionID}> - *${data.armband}*`;
|
else description += `\n> <@&${factionID}> - *${data.armband}*`;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
factions.setDescription(description);
|
factions.setDescription(description);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "4.2.0",
|
"version": "4.2.1",
|
||||||
"description": "A Discord Bot to handle DayZ server flags and armbands for in game factions.",
|
"description": "A Discord Bot to handle DayZ server flags and armbands for in game factions.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user