mirror of
https://github.com/Burn-E99/GroupUp.git
synced 2026-06-04 00:43:49 -04:00
v0.5.7 - Sonar Cleanup + New Activities
This commit is contained in:
@@ -19,8 +19,8 @@ const dbClient = await new Client().connect({
|
||||
|
||||
console.log('Attempting to insert default commands into command_cnt');
|
||||
const commands = ['ping', 'help', 'info', 'version', 'report', 'privacy', 'lfg', 'prefix'];
|
||||
for (let i = 0; i < commands.length; i++) {
|
||||
await dbClient.execute('INSERT INTO command_cnt(command) values(?)', [commands[i]]).catch((e) => {
|
||||
for (const command of commands) {
|
||||
await dbClient.execute('INSERT INTO command_cnt(command) values(?)', [command]).catch((e) => {
|
||||
console.log(`Failed to insert into database`, e);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"lib": ["deno.worker"],
|
||||
"lib": ["deno.window"],
|
||||
"strict": true
|
||||
},
|
||||
"lint": {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export const LFGActivities = {
|
||||
'Destiny 2': {
|
||||
'Raids': {
|
||||
'King\'s Fall': 6,
|
||||
'Vow of the Disciple': 6,
|
||||
'Vault of Glass': 6,
|
||||
'Deep Stone Crypt': 6,
|
||||
@@ -32,6 +33,8 @@ export const LFGActivities = {
|
||||
}, */
|
||||
'Nightfall': 3,
|
||||
'Miscellaneous': {
|
||||
'Ketchrash': 6,
|
||||
'Expedition': 3,
|
||||
'Weekly Witch Queen Campaign Mission': 3,
|
||||
'Wellspring': 6,
|
||||
'Dares of Eternity': 6,
|
||||
|
||||
@@ -11,10 +11,10 @@ export const determineTZ = (tz: string, userOverride = false): [string, boolean]
|
||||
const jul = new Date(today.getFullYear(), 6, 1);
|
||||
if (today.getTimezoneOffset() < Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset())) {
|
||||
if (tz.includes('S')) overrode = true;
|
||||
tz = `${tz.substr(0, 1)}DT`;
|
||||
tz = `${tz.substring(0, 1)}DT`;
|
||||
} else {
|
||||
if (tz.includes('D')) overrode = true;
|
||||
tz = `${tz.substr(0, 1)}ST`;
|
||||
tz = `${tz.substring(0, 1)}ST`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const jsonParseBig = (input: string) => {
|
||||
return JSON.parse(input, (_key, 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;
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<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" />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<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" />
|
||||
|
||||
Reference in New Issue
Block a user