mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 00:53:50 -04:00
remove mod.d.ts since all types have been relocated now
This commit is contained in:
@@ -6,9 +6,16 @@ import config from '~config';
|
||||
import dbClient from 'db/client.ts';
|
||||
import { queries } from 'db/common.ts';
|
||||
|
||||
import { EmojiConf } from 'src/mod.d.ts';
|
||||
import utils from 'src/utils.ts';
|
||||
|
||||
interface EmojiConf {
|
||||
name: string;
|
||||
aliases: string[];
|
||||
id: string;
|
||||
animated: boolean;
|
||||
deleteSender: boolean;
|
||||
}
|
||||
|
||||
const allEmojiAliases: string[] = [];
|
||||
|
||||
config.emojis.forEach((curEmoji: EmojiConf) => {
|
||||
|
||||
@@ -12,9 +12,13 @@ import config from '~config';
|
||||
import dbClient from 'db/client.ts';
|
||||
import { weekDays } from 'db/common.ts';
|
||||
|
||||
import { PastCommandCount } from 'src/mod.d.ts';
|
||||
import utils from 'src/utils.ts';
|
||||
|
||||
interface PastCommandCount {
|
||||
command: string;
|
||||
count: number;
|
||||
}
|
||||
|
||||
// getRandomStatus() returns status as string
|
||||
// Gets a new random status for the bot
|
||||
const getRandomStatus = async (): Promise<string> => {
|
||||
@@ -193,7 +197,7 @@ const updateHeatmapPng = async () => {
|
||||
hourPixels[hour][0] + 1,
|
||||
dayPixels[day][1] - dayPixels[day][0] + 1,
|
||||
hourPixels[hour][1] - hourPixels[hour][0] + 1,
|
||||
Image.rgbToColor(255 * (1 - percent), 255 * percent, 0),
|
||||
Image.rgbToColor(255 * (1 - percent), 255 * percent, 0)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
14
src/mod.d.ts
vendored
14
src/mod.d.ts
vendored
@@ -1,14 +0,0 @@
|
||||
// EmojiConf is used as a structure for the emojis stored in config.ts
|
||||
export interface EmojiConf {
|
||||
name: string;
|
||||
aliases: string[];
|
||||
id: string;
|
||||
animated: boolean;
|
||||
deleteSender: boolean;
|
||||
}
|
||||
|
||||
// PastCommandCount is used in calculating the hourly rate of commands
|
||||
export interface PastCommandCount {
|
||||
command: string;
|
||||
count: number;
|
||||
}
|
||||
Reference in New Issue
Block a user