File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import axios from 'axios';
3
3
import log from '../lib/logger' ;
4
4
import { Webhook } from '../types/DiscordWebhook' ;
5
5
import * as timersPromises from 'timers/promises' ;
6
- import filterAxiosError from '@tf2autobot/filter-axios-error' ;
7
6
import fs from 'fs' ;
8
7
import path from 'path' ;
9
8
@@ -41,7 +40,7 @@ export default class SchemaManager {
41
40
return new Promise ( ( resolve , reject ) => {
42
41
this . schemaManager = new SchemaTF2 ( {
43
42
apiKey : process . env . STEAM_API_KEY ,
44
- updateTime : 5 * 60 * 1000
43
+ updateTime : 2 * 60 * 1000
45
44
} ) ;
46
45
47
46
this . schemaManager . init ( err => {
@@ -353,7 +352,7 @@ function constructWebhook({
353
352
description : string ;
354
353
color : string ;
355
354
} ) : Webhook {
356
- return {
355
+ const toReturn = {
357
356
username : 'Schema.autobot.tf' ,
358
357
avatar_url : 'https://autobot.tf/images/tf2autobot.png' ,
359
358
embeds : [
@@ -367,6 +366,8 @@ function constructWebhook({
367
366
}
368
367
]
369
368
} ;
369
+ log . debug ( 'discord: ' , toReturn ) ;
370
+ return toReturn ;
370
371
}
371
372
372
373
type WebhookType = 'items' | 'effects' | 'paintkits' | 'skus' ;
You can’t perform that action at this time.
0 commit comments