aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-11 18:44:09 +0200
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-11 18:44:09 +0200
commitd2a020837267bf024f508b402f596f8e242672ed (patch)
tree7e371015fa1451bda993e44aa591b3cc24c3209d
parent7d1dede862339c439830a0306e2b7f3a273f967f (diff)
downloadtanzanite-d2a020837267bf024f508b402f596f8e242672ed.tar.gz
tanzanite-d2a020837267bf024f508b402f596f8e242672ed.tar.bz2
tanzanite-d2a020837267bf024f508b402f596f8e242672ed.zip
create task categories
-rw-r--r--src/lib/extensions/discord-akairo/BushClient.ts4
-rw-r--r--src/tasks/cache/cpuUsage.ts (renamed from src/tasks/cpuUsage.ts)0
-rw-r--r--src/tasks/cache/updateCache.ts (renamed from src/tasks/updateCache.ts)4
-rw-r--r--src/tasks/cache/updateHighlightCache.ts (renamed from src/tasks/updateHighlightCache.ts)2
-rw-r--r--src/tasks/cache/updatePriceItemCache.ts (renamed from src/tasks/updatePriceItemCache.ts)2
-rw-r--r--src/tasks/feature/handleReminders.ts (renamed from src/tasks/handleReminders.ts)0
-rw-r--r--src/tasks/feature/memberCount.ts (renamed from src/tasks/memberCount.ts)0
-rw-r--r--src/tasks/feature/removeExpiredPunishements.ts (renamed from src/tasks/removeExpiredPunishements.ts)0
-rw-r--r--src/tasks/feature/updateStats.ts (renamed from src/tasks/updateStats.ts)0
9 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts
index 5f63839..286d9cf 100644
--- a/src/lib/extensions/discord-akairo/BushClient.ts
+++ b/src/lib/extensions/discord-akairo/BushClient.ts
@@ -47,8 +47,8 @@ import type { Options as SequelizeOptions, Sequelize as SequelizeType } from 'se
import { fileURLToPath } from 'url';
import type { Config } from '../../../../config/Config.js';
import { tinyColor } from '../../../arguments/tinyColor.js';
-import UpdateCacheTask from '../../../tasks/updateCache.js';
-import UpdateStatsTask from '../../../tasks/updateStats.js';
+import UpdateCacheTask from '../../../tasks/cache/updateCache.js';
+import UpdateStatsTask from '../../../tasks/feature/updateStats.js';
import { HighlightManager } from '../../common/HighlightManager.js';
import { ActivePunishment } from '../../models/instance/ActivePunishment.js';
import { Guild as GuildDB } from '../../models/instance/Guild.js';
diff --git a/src/tasks/cpuUsage.ts b/src/tasks/cache/cpuUsage.ts
index 61e7a54..61e7a54 100644
--- a/src/tasks/cpuUsage.ts
+++ b/src/tasks/cache/cpuUsage.ts
diff --git a/src/tasks/updateCache.ts b/src/tasks/cache/updateCache.ts
index 27df1ca..87636e8 100644
--- a/src/tasks/updateCache.ts
+++ b/src/tasks/cache/updateCache.ts
@@ -1,8 +1,8 @@
import { Time } from '#constants';
import { Global, Guild, Shared, type BushClient } from '#lib';
import type { Client } from 'discord.js';
-import config from '../../config/options.js';
-import { BushTask } from '../lib/extensions/discord-akairo/BushTask.js';
+import config from '../../../config/options.js';
+import { BushTask } from '../../lib/extensions/discord-akairo/BushTask.js';
export default class UpdateCacheTask extends BushTask {
public constructor() {
diff --git a/src/tasks/updateHighlightCache.ts b/src/tasks/cache/updateHighlightCache.ts
index 4677ea7..44ddd90 100644
--- a/src/tasks/updateHighlightCache.ts
+++ b/src/tasks/cache/updateHighlightCache.ts
@@ -1,5 +1,5 @@
import { Time } from '#constants';
-import { BushTask } from '../lib/extensions/discord-akairo/BushTask.js';
+import { BushTask } from '../../lib/extensions/discord-akairo/BushTask.js';
export default class UpdateHighlightCacheTask extends BushTask {
public constructor() {
diff --git a/src/tasks/updatePriceItemCache.ts b/src/tasks/cache/updatePriceItemCache.ts
index 5f68a8c..9809cbd 100644
--- a/src/tasks/updatePriceItemCache.ts
+++ b/src/tasks/cache/updatePriceItemCache.ts
@@ -1,6 +1,6 @@
import { BushTask, Time } from '#lib';
import got from 'got';
-import PriceCommand, { AuctionAverages, Bazaar, LowestBIN } from '../commands/utilities/price.js';
+import PriceCommand, { AuctionAverages, Bazaar, LowestBIN } from '../../commands/utilities/price.js';
export default class UpdatePriceItemCache extends BushTask {
public constructor() {
diff --git a/src/tasks/handleReminders.ts b/src/tasks/feature/handleReminders.ts
index 7863c9a..7863c9a 100644
--- a/src/tasks/handleReminders.ts
+++ b/src/tasks/feature/handleReminders.ts
diff --git a/src/tasks/memberCount.ts b/src/tasks/feature/memberCount.ts
index ea422fa..ea422fa 100644
--- a/src/tasks/memberCount.ts
+++ b/src/tasks/feature/memberCount.ts
diff --git a/src/tasks/removeExpiredPunishements.ts b/src/tasks/feature/removeExpiredPunishements.ts
index 0b20a27..0b20a27 100644
--- a/src/tasks/removeExpiredPunishements.ts
+++ b/src/tasks/feature/removeExpiredPunishements.ts
diff --git a/src/tasks/updateStats.ts b/src/tasks/feature/updateStats.ts
index 0d0e661..0d0e661 100644
--- a/src/tasks/updateStats.ts
+++ b/src/tasks/feature/updateStats.ts