feat: implemented psa system

This commit is contained in:
TresAbhi committed 2023-06-16 02:15:46 +00:00
1 parent f6480ad66f
commit 5e98bc988c
19 files changed
+40 -21

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { EmbedBuilder } from 'discord.js';
import { WARNING_COLOR } from '../../constants/colors.js';
export default function warningEmbed(title: string, description: string) {
return new EmbedBuilder()
.setColor(WARNING_COLOR)
.setTitle(title)
.setDescription(description);
}
+4 -4
View File
@@ -12,9 +12,9 @@ export const psa: PSA = {};
console.log('Caching PSA...');
fetch(
'https://gist.githubusercontent.com/tresabhi/ed4b136f08856e615212e573aabe1968/raw',
).then((response) => {
response.json().then((data) => {
)
.then((response) => response.json())
.then((data) => {
psa.data = data as PSAData;
console.log('PSA cached');
});
console.log('PSA cached');
});