remove mod.d.ts since all types have been relocated now

This commit is contained in:
Ean Milligan 2025-05-03 20:53:17 -04:00
parent f2797e6c33
commit 3e6844ed10
6 changed files with 17 additions and 20 deletions

View File

@ -10,7 +10,7 @@ pidfile="/var/dbots/TheArtificer/artificer.pid"
artificer_root="/var/dbots/TheArtificer"
artificer_write="./logs/,./src/endpoints/gets/heatmap.png"
artificer_read="./src/artigen/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png,./config.ts,./deps.ts,./flags.ts,./src/mod.d.ts"
artificer_read="./src/artigen/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png,./config.ts,./flags.ts"
artificer_log="/var/log/artificer.log"
artificer_chdir="${artificer_root}"

View File

@ -6,7 +6,7 @@ After=network.target
[Service]
Type=simple
PIDFile=/run/deno.pid
ExecStart=/root/.deno/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/artigen/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png,./config.ts,./deps.ts,./flags.ts,./src/mod.d.ts --allow-net --allow-import .\mod.ts
ExecStart=/root/.deno/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/artigen/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png,./config.ts,./flags.ts --allow-net --allow-import .\mod.ts
RestartSec=60
Restart=on-failure

View File

@ -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) => {

View File

@ -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
View File

@ -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;
}

View File

@ -1 +1 @@
deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/artigen/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png,./config.ts,./deps.ts,./flags.ts,./src/mod.d.ts --allow-net --allow-import mod.ts
deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/artigen/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png,./config.ts,./flags.ts --allow-net --allow-import mod.ts