Merge branch 'main' into update/support-discord-sharding
This commit is contained in:
6 files changed
+289
-9
No files matched your search
@@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
name: Bug report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Describe the bug**
|
||||||
|
A clear and concise description of what the bug is.
|
||||||
|
|
||||||
|
**To Reproduce**
|
||||||
|
Steps to reproduce the behavior:
|
||||||
|
1. Execute command '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
**Expected behavior**
|
||||||
|
A clear and concise description of what you expected to happen.
|
||||||
|
|
||||||
|
**Screenshots**
|
||||||
|
If applicable, add screenshots to help explain your problem.
|
||||||
|
|
||||||
|
**Desktop (please complete the following information):**
|
||||||
|
- OS: [e.g. iOS]
|
||||||
|
- Browser [e.g. chrome, safari]
|
||||||
|
- Version [e.g. 22]
|
||||||
|
|
||||||
|
**Smartphone (please complete the following information):**
|
||||||
|
- Device: [e.g. iPhone6]
|
||||||
|
- OS: [e.g. iOS8.1]
|
||||||
|
- Browser [e.g. stock browser, safari]
|
||||||
|
- Version [e.g. 22]
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context about the problem here.
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: Feature request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
title: ''
|
||||||
|
labels: ''
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Is your feature request related to a problem? Please describe.**
|
||||||
|
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||||
|
|
||||||
|
**Describe the solution you'd like**
|
||||||
|
A clear and concise description of what you want to happen.
|
||||||
|
|
||||||
|
**Describe alternatives you've considered**
|
||||||
|
A clear and concise description of any alternative solutions or features you've considered.
|
||||||
|
|
||||||
|
**Additional context**
|
||||||
|
Add any other context or screenshots about the feature request here.
|
||||||
@@ -97,7 +97,7 @@ module.exports = {
|
|||||||
url: "https://static.wikia.nocookie.net/dayz_gamepedia/images/4/42/Flag_jolly_c_co.png/revision/latest?cb=20200820222641"
|
url: "https://static.wikia.nocookie.net/dayz_gamepedia/images/4/42/Flag_jolly_c_co.png/revision/latest?cb=20200820222641"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "North Sahrani (KOS)",
|
name: "South Sahrani (KOS)",
|
||||||
url: "https://static.wikia.nocookie.net/dayz_gamepedia/images/a/a1/Flag_kos_co.png/revision/latest?cb=20200820222644"
|
url: "https://static.wikia.nocookie.net/dayz_gamepedia/images/a/a1/Flag_kos_co.png/revision/latest?cb=20200820222644"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
+216
-1
@@ -4,6 +4,7 @@ module.exports = {
|
|||||||
Missions: {
|
Missions: {
|
||||||
"dayzOffline.chernarusplus": "Chernarus",
|
"dayzOffline.chernarusplus": "Chernarus",
|
||||||
"dayzOffline.enoch": "Livonia",
|
"dayzOffline.enoch": "Livonia",
|
||||||
|
"dayzOffline.sakhal": "Sakhal",
|
||||||
},
|
},
|
||||||
|
|
||||||
// Calculates the nearest location to a given coordinate
|
// Calculates the nearest location to a given coordinate
|
||||||
@@ -465,5 +466,219 @@ const destinations = {
|
|||||||
name: 'Widok',
|
name: 'Widok',
|
||||||
coord: [10234.38, 2165.63],
|
coord: [10234.38, 2165.63],
|
||||||
},
|
},
|
||||||
]
|
],
|
||||||
|
Sakhal: [
|
||||||
|
{
|
||||||
|
name: 'Tochka',
|
||||||
|
coord: [3731.25, 14404.69],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Utes',
|
||||||
|
coord: [5396.25, 14539.69],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Sputnik',
|
||||||
|
coord: [7738.13, 14820.00],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'West Uzhki',
|
||||||
|
coord: [10501.88, 14588.44],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'East Uzhki',
|
||||||
|
coord: [11251.88, 14420.63],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Tungar',
|
||||||
|
coord: [12673.13, 14116.88],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Jasnomorsk',
|
||||||
|
coord: [6953.44, 13388.44],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Jevai',
|
||||||
|
coord: [7937.81, 13541.25],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Tumanovo',
|
||||||
|
coord: [8444.06, 13693.13],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Severomorsk',
|
||||||
|
coord: [9570.94, 13525.31],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Orlovo',
|
||||||
|
coord: [10369.69, 13320.94],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Podgornoe',
|
||||||
|
coord: [10984.69, 13170.94],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Rybnoe',
|
||||||
|
coord: [12423.75, 12722.81],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Rudnogorsk',
|
||||||
|
coord: [13573.13, 11874.38],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Matrosovo',
|
||||||
|
coord: [14266.88, 11621.25],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Vajkovo',
|
||||||
|
coord: [14555.63, 9804.38],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Sumnoe',
|
||||||
|
coord: [14385.00, 8866.88],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Vostok',
|
||||||
|
coord: [13908.75, 8362.50],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Aniva',
|
||||||
|
coord: [12823.13, 7370.63],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Juznoe',
|
||||||
|
coord: [10950.00, 6313.13],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Taranay',
|
||||||
|
coord: [9703.13, 6547.50],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Nogovo',
|
||||||
|
coord: [7681.88, 7848.75],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Airfield',
|
||||||
|
coord: [7104.38, 7325.63],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Dudino',
|
||||||
|
coord: [6133.13, 7286.25],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Bolotnoe',
|
||||||
|
coord: [5083.13, 8660.63],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'South Petropavlovsk-Sachalsky',
|
||||||
|
coord: [5443.13, 10001.25],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'North Petropavlovsk-Sachalsky',
|
||||||
|
coord: [5585.63, 11197.50],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Zupanovo',
|
||||||
|
coord: [5747.81, 12585.94],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Sovetskoe',
|
||||||
|
coord: [6398.44, 12825.00],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Neran',
|
||||||
|
coord: [2685.00, 9251.25],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Tugar',
|
||||||
|
coord: [1742.81, 6121.88],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cerny Mys',
|
||||||
|
coord: [5173.13, 3828.75],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Kekra',
|
||||||
|
coord: [7066.88, 4280.63],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Slomanyy',
|
||||||
|
coord: [6333.75, 6453.75],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Utichy',
|
||||||
|
coord: [8563.13, 5079.38],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Elizarovo',
|
||||||
|
coord: [13395.00, 5175.00],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Solisko',
|
||||||
|
coord: [12693.75, 2291.25],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Mrak',
|
||||||
|
coord: [8480.63, 1313.44],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Ketoj',
|
||||||
|
coord: [5626.88, 1991.25],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Urup',
|
||||||
|
coord: [1680.00, 870.00],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Ayan',
|
||||||
|
coord: [1018.12, 2891.25],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cerepacha',
|
||||||
|
coord: [813.75, 11287.50],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Odinokij Vulkan',
|
||||||
|
coord: [10020.00, 12008.44],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Pik Bolcij',
|
||||||
|
coord: [8195.63, 11675.63],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Sakhalskaj GeoES',
|
||||||
|
coord: [8366.25, 10274.06],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Dolinovka',
|
||||||
|
coord: [9823.13, 9838.13],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Lesogorovka',
|
||||||
|
coord: [11006.25, 9729.38],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Sachalag Military',
|
||||||
|
coord: [12140.63, 9757.50],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Goriachevo',
|
||||||
|
coord: [8887.50, 10018.13],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Yasnaya Polyana',
|
||||||
|
coord: [8128.13, 9150.00],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Tichoe',
|
||||||
|
coord: [6245.63, 8655.00],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Ledanoj Greben Military',
|
||||||
|
coord: [10378.13, 8555.63],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Vysokoe',
|
||||||
|
coord: [11165.63, 7910.63],
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
+3
-1
@@ -15,6 +15,7 @@ module.exports = {
|
|||||||
"Signal Pistol": "https://static.wikia.nocookie.net/dayz_gamepedia/images/a/a7/Flaregun.png/revision/latest/scale-to-width-down/107?cb=20210501150913",
|
"Signal Pistol": "https://static.wikia.nocookie.net/dayz_gamepedia/images/a/a7/Flaregun.png/revision/latest/scale-to-width-down/107?cb=20210501150913",
|
||||||
},
|
},
|
||||||
shotguns: {
|
shotguns: {
|
||||||
|
"BK-12": "https://static.wikia.nocookie.net/dayz_gamepedia/images/c/cb/Izh18Shotgun.png/revision/latest/scale-to-width-down/256?cb=20220922184507",
|
||||||
"BK-133": "https://static.wikia.nocookie.net/dayz_gamepedia/images/5/5c/MP-133-Shotgun.png/revision/latest/scale-to-width-down/256?cb=20210210190104",
|
"BK-133": "https://static.wikia.nocookie.net/dayz_gamepedia/images/5/5c/MP-133-Shotgun.png/revision/latest/scale-to-width-down/256?cb=20210210190104",
|
||||||
"BK-43": "https://static.wikia.nocookie.net/dayz_gamepedia/images/c/c7/Izh43Shotgun.png/revision/latest/scale-to-width-down/256?cb=20210210185835",
|
"BK-43": "https://static.wikia.nocookie.net/dayz_gamepedia/images/c/c7/Izh43Shotgun.png/revision/latest/scale-to-width-down/256?cb=20210210185835",
|
||||||
"Vaiga": "https://static.wikia.nocookie.net/dayz_gamepedia/images/c/c8/Vaiga.png/revision/latest/scale-to-width-down/256?cb=20220220185225",
|
"Vaiga": "https://static.wikia.nocookie.net/dayz_gamepedia/images/c/c8/Vaiga.png/revision/latest/scale-to-width-down/256?cb=20220220185225",
|
||||||
@@ -48,6 +49,7 @@ module.exports = {
|
|||||||
"Mosin 91/30": "https://static.wikia.nocookie.net/dayz_gamepedia/images/a/a8/Mosin9130.png/revision/latest/scale-to-width-down/256?cb=20230126021955",
|
"Mosin 91/30": "https://static.wikia.nocookie.net/dayz_gamepedia/images/a/a8/Mosin9130.png/revision/latest/scale-to-width-down/256?cb=20230126021955",
|
||||||
"Pioneer": "https://static.wikia.nocookie.net/dayz_gamepedia/images/6/69/Scout.png/revision/latest/scale-to-width-down/256?cb=20220518204357",
|
"Pioneer": "https://static.wikia.nocookie.net/dayz_gamepedia/images/6/69/Scout.png/revision/latest/scale-to-width-down/256?cb=20220518204357",
|
||||||
"SSG 82": "https://static.wikia.nocookie.net/dayz_gamepedia/images/1/10/SSG82.png/revision/latest/scale-to-width-down/256?cb=20220922192455",
|
"SSG 82": "https://static.wikia.nocookie.net/dayz_gamepedia/images/1/10/SSG82.png/revision/latest/scale-to-width-down/256?cb=20220922192455",
|
||||||
|
"VS-89": "https://static.wikia.nocookie.net/dayz_gamepedia/images/e/ea/SV98.png/revision/latest/scale-to-width-down/256?cb=20240424164607",
|
||||||
},
|
},
|
||||||
breakActionRifles: {
|
breakActionRifles: {
|
||||||
"BK-18": "https://static.wikia.nocookie.net/dayz_gamepedia/images/c/cb/IZH18_Rifle.png/revision/latest/scale-to-width-down/256?cb=20220517154121",
|
"BK-18": "https://static.wikia.nocookie.net/dayz_gamepedia/images/c/cb/IZH18_Rifle.png/revision/latest/scale-to-width-down/256?cb=20220517154121",
|
||||||
@@ -59,9 +61,9 @@ module.exports = {
|
|||||||
marksmanRifles: {
|
marksmanRifles: {
|
||||||
"VSD": "https://static.wikia.nocookie.net/dayz_gamepedia/images/a/a2/SVD_w._PSO-1.png/revision/latest/scale-to-width-down/256?cb=20220220235826",
|
"VSD": "https://static.wikia.nocookie.net/dayz_gamepedia/images/a/a2/SVD_w._PSO-1.png/revision/latest/scale-to-width-down/256?cb=20220220235826",
|
||||||
"VSS": "https://static.wikia.nocookie.net/dayz_gamepedia/images/8/83/VSSVintorez.png/revision/latest/scale-to-width-down/256?cb=20210208202042",
|
"VSS": "https://static.wikia.nocookie.net/dayz_gamepedia/images/8/83/VSSVintorez.png/revision/latest/scale-to-width-down/256?cb=20210208202042",
|
||||||
"DMR": "https://static.wikia.nocookie.net/dayz_gamepedia/images/b/b4/M14.png/revision/latest/scale-to-width-down/350?cb=20231005142636",
|
|
||||||
},
|
},
|
||||||
semiAutomaticRifles: {
|
semiAutomaticRifles: {
|
||||||
|
"DMR": "https://static.wikia.nocookie.net/dayz_gamepedia/images/b/b4/M14.png/revision/latest/scale-to-width-down/350?cb=20231005142636",
|
||||||
"SK 59/66": "https://static.wikia.nocookie.net/dayz_gamepedia/images/f/fe/SKS.png/revision/latest/scale-to-width-down/256?cb=20220517154633",
|
"SK 59/66": "https://static.wikia.nocookie.net/dayz_gamepedia/images/f/fe/SKS.png/revision/latest/scale-to-width-down/256?cb=20220517154633",
|
||||||
"Sporter 22": "https://static.wikia.nocookie.net/dayz_gamepedia/images/5/5b/Sporter_22_Wood.png/revision/latest/scale-to-width-down/256?cb=20220518204154",
|
"Sporter 22": "https://static.wikia.nocookie.net/dayz_gamepedia/images/5/5b/Sporter_22_Wood.png/revision/latest/scale-to-width-down/256?cb=20220518204154",
|
||||||
},
|
},
|
||||||
|
|||||||
+11
-6
@@ -93,22 +93,27 @@ class DayzRBot extends Client {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const command = interaction.data.name.toLowerCase();
|
||||||
|
const args = interaction.data.options;
|
||||||
|
|
||||||
|
// Free unused armbands for related commands
|
||||||
|
if (['armbands', 'claim', 'factions'].includes(command)) {
|
||||||
for (const [factionID, data] of Object.entries(GuildDB.factionArmbands)) {
|
for (const [factionID, data] of Object.entries(GuildDB.factionArmbands)) {
|
||||||
const guild = this.guilds.cache.get(GuildDB.serverID);
|
const guild = client.guilds.cache.get(GuildDB.serverID);
|
||||||
const role = guild.roles.cache.find(role => role.id == factionID);
|
const role = guild.roles.cache.find(role => role.id == factionID);
|
||||||
if (!role) {
|
if (!role) {
|
||||||
let query = {
|
let query = {
|
||||||
$pull: { 'server.usedArmbands': data.armband },
|
$pull: { 'server.usedArmbands': data.armband },
|
||||||
$unset: { [`server.factionArmbands.${factionID}`]: "" },
|
$unset: { [`server.factionArmbands.${factionID}`]: "" },
|
||||||
};
|
};
|
||||||
this.dbo.collection("guilds").updateOne({ 'server.serverID': GuildDB.serverID }, query, (err, res) => {
|
await client.dbo.collection("guilds").updateOne({ 'server.serverID': GuildDB.serverID }, query, (err, res) => {
|
||||||
if (err) return this.sendInternalError(interaction, err);
|
if (err) return client.sendInternalError(interaction, err);
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
newFactionArmbands[`${factionID}`] = data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const command = interaction.data.name.toLowerCase();
|
|
||||||
const args = interaction.data.options;
|
|
||||||
|
|
||||||
this.log(`Interaction [${interaction.guild_id}] - ${command}`);
|
this.log(`Interaction [${interaction.guild_id}] - ${command}`);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user