v0.5.7 - Sonar Cleanup + New Activities

This commit is contained in:
Ean Milligan (Bastion) 2022-08-27 02:31:23 -04:00
parent 5f4c3b10b1
commit 04ebce7d01
7 changed files with 11 additions and 8 deletions

View File

@ -19,8 +19,8 @@ const dbClient = await new Client().connect({
console.log('Attempting to insert default commands into command_cnt'); console.log('Attempting to insert default commands into command_cnt');
const commands = ['ping', 'help', 'info', 'version', 'report', 'privacy', 'lfg', 'prefix']; const commands = ['ping', 'help', 'info', 'version', 'report', 'privacy', 'lfg', 'prefix'];
for (let i = 0; i < commands.length; i++) { for (const command of commands) {
await dbClient.execute('INSERT INTO command_cnt(command) values(?)', [commands[i]]).catch((e) => { await dbClient.execute('INSERT INTO command_cnt(command) values(?)', [command]).catch((e) => {
console.log(`Failed to insert into database`, e); console.log(`Failed to insert into database`, e);
}); });
} }

View File

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"allowJs": true, "allowJs": true,
"lib": ["deno.worker"], "lib": ["deno.window"],
"strict": true "strict": true
}, },
"lint": { "lint": {

View File

@ -1,6 +1,7 @@
export const LFGActivities = { export const LFGActivities = {
'Destiny 2': { 'Destiny 2': {
'Raids': { 'Raids': {
'King\'s Fall': 6,
'Vow of the Disciple': 6, 'Vow of the Disciple': 6,
'Vault of Glass': 6, 'Vault of Glass': 6,
'Deep Stone Crypt': 6, 'Deep Stone Crypt': 6,
@ -32,6 +33,8 @@ export const LFGActivities = {
}, */ }, */
'Nightfall': 3, 'Nightfall': 3,
'Miscellaneous': { 'Miscellaneous': {
'Ketchrash': 6,
'Expedition': 3,
'Weekly Witch Queen Campaign Mission': 3, 'Weekly Witch Queen Campaign Mission': 3,
'Wellspring': 6, 'Wellspring': 6,
'Dares of Eternity': 6, 'Dares of Eternity': 6,

View File

@ -11,10 +11,10 @@ export const determineTZ = (tz: string, userOverride = false): [string, boolean]
const jul = new Date(today.getFullYear(), 6, 1); const jul = new Date(today.getFullYear(), 6, 1);
if (today.getTimezoneOffset() < Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset())) { if (today.getTimezoneOffset() < Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset())) {
if (tz.includes('S')) overrode = true; if (tz.includes('S')) overrode = true;
tz = `${tz.substr(0, 1)}DT`; tz = `${tz.substring(0, 1)}DT`;
} else { } else {
if (tz.includes('D')) overrode = true; if (tz.includes('D')) overrode = true;
tz = `${tz.substr(0, 1)}ST`; tz = `${tz.substring(0, 1)}ST`;
} }
} }

View File

@ -1,7 +1,7 @@
export const jsonParseBig = (input: string) => { export const jsonParseBig = (input: string) => {
return JSON.parse(input, (_key, value) => { return JSON.parse(input, (_key, value) => {
if (typeof value === 'string' && /^\d+n$/.test(value)) { if (typeof value === 'string' && /^\d+n$/.test(value)) {
return BigInt(value.substr(0, value.length - 1)); return BigInt(value.substring(0, value.length - 1));
} }
return value; return value;
}); });

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />