remove mod.d.ts since all types have been relocated now
This commit is contained in:
parent
f2797e6c33
commit
3e6844ed10
|
@ -10,7 +10,7 @@ pidfile="/var/dbots/TheArtificer/artificer.pid"
|
||||||
|
|
||||||
artificer_root="/var/dbots/TheArtificer"
|
artificer_root="/var/dbots/TheArtificer"
|
||||||
artificer_write="./logs/,./src/endpoints/gets/heatmap.png"
|
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_log="/var/log/artificer.log"
|
||||||
|
|
||||||
artificer_chdir="${artificer_root}"
|
artificer_chdir="${artificer_root}"
|
||||||
|
|
|
@ -6,7 +6,7 @@ After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
PIDFile=/run/deno.pid
|
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
|
RestartSec=60
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,16 @@ import config from '~config';
|
||||||
import dbClient from 'db/client.ts';
|
import dbClient from 'db/client.ts';
|
||||||
import { queries } from 'db/common.ts';
|
import { queries } from 'db/common.ts';
|
||||||
|
|
||||||
import { EmojiConf } from 'src/mod.d.ts';
|
|
||||||
import utils from 'src/utils.ts';
|
import utils from 'src/utils.ts';
|
||||||
|
|
||||||
|
interface EmojiConf {
|
||||||
|
name: string;
|
||||||
|
aliases: string[];
|
||||||
|
id: string;
|
||||||
|
animated: boolean;
|
||||||
|
deleteSender: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
const allEmojiAliases: string[] = [];
|
const allEmojiAliases: string[] = [];
|
||||||
|
|
||||||
config.emojis.forEach((curEmoji: EmojiConf) => {
|
config.emojis.forEach((curEmoji: EmojiConf) => {
|
||||||
|
|
|
@ -12,9 +12,13 @@ import config from '~config';
|
||||||
import dbClient from 'db/client.ts';
|
import dbClient from 'db/client.ts';
|
||||||
import { weekDays } from 'db/common.ts';
|
import { weekDays } from 'db/common.ts';
|
||||||
|
|
||||||
import { PastCommandCount } from 'src/mod.d.ts';
|
|
||||||
import utils from 'src/utils.ts';
|
import utils from 'src/utils.ts';
|
||||||
|
|
||||||
|
interface PastCommandCount {
|
||||||
|
command: string;
|
||||||
|
count: number;
|
||||||
|
}
|
||||||
|
|
||||||
// getRandomStatus() returns status as string
|
// getRandomStatus() returns status as string
|
||||||
// Gets a new random status for the bot
|
// Gets a new random status for the bot
|
||||||
const getRandomStatus = async (): Promise<string> => {
|
const getRandomStatus = async (): Promise<string> => {
|
||||||
|
@ -193,7 +197,7 @@ const updateHeatmapPng = async () => {
|
||||||
hourPixels[hour][0] + 1,
|
hourPixels[hour][0] + 1,
|
||||||
dayPixels[day][1] - dayPixels[day][0] + 1,
|
dayPixels[day][1] - dayPixels[day][0] + 1,
|
||||||
hourPixels[hour][1] - hourPixels[hour][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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue