File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,10 +43,11 @@ export async function findOrCreateUser(msg: Message): Promise<boolean> {
4343 commandCount : 1 ,
4444 } ,
4545 } ) ;
46+ return true ;
4647 } catch ( error ) {
4748 log . error ( "Database" , `Failed to find or create user.` , error ) ;
4849 }
49- return true ;
50+ return false ;
5051}
5152
5253export async function getUserbyLid ( lid : string ) {
Original file line number Diff line number Diff line change @@ -18,13 +18,14 @@ const monitor = new MemoryMonitor({
1818 thresholdMB : parseInt ( process . env . PROJECT_THRESHOLD_MEMORY || "1024" , 10 ) ,
1919} ) ;
2020const phishtank = new PhishTankClient ( ) ;
21- const phishingSet : Set < string > = phishtank . getPhishingSet ( ) ;
21+ let phishingSet : Set < string > ;
2222
2323async function main ( ) {
2424 checkRequirements ( ) ;
2525 monitor . start ( ) ;
2626 phishtank . startAutoUpdateLoop ( ) ;
2727 await phishtank . init ( ) ;
28+ phishingSet = phishtank . getPhishingSet ( ) ;
2829 await client . initialize ( ) ;
2930
3031 mapCommands ( ) ;
You can’t perform that action at this time.
0 commit comments