1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

Update heatmap embed to show min and max vals

This commit is contained in:
Ean Milligan (Bastion)
2022-06-26 23:18:44 -04:00
parent 51924b7f14
commit 6adf18008a
2 changed files with 12 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import {
import config from '../../config.ts';
import { failColor, infoColor2 } from '../commandUtils.ts';
import utils from '../utils.ts';
import intervals from '../intervals.ts';
export const heatmap = async (message: DiscordenoMessage) => {
// Light telemetry to see how many times a command is being run
@@ -15,14 +16,17 @@ export const heatmap = async (message: DiscordenoMessage) => {
const m = await message.send({
embeds: [{
title: 'Roll Heatmap',
description: `Least Rolls: ${intervals.getMinRollCnt()}
Most Rolls: ${intervals.getMaxRollCnt()}`,
footer: {
text: 'Data is shown in US Eastern Time. | This heatmap uses data starting 6/26/2022.',
},
color: infoColor2,
image: {
url: `${config.api.publicDomain}api/heatmap.png`,
},
}],
}).catch((e) => utils.commonLoggers.messageSendError('heatmap.ts:21', message, e));
console.log(m);
} else {
message.send({
embeds: [{