Move stuff
This commit is contained in:
		
							parent
							
								
									fb866169e8
								
							
						
					
					
						commit
						0da00e5efb
					
				
							
								
								
									
										9
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								index.js
									
									
									
									
									
								
							|  | @ -55,11 +55,7 @@ async function getPreviousDayData() { | |||
| 		recordForToday = res[1] | ||||
| 		monthlyTotal = res[2] | ||||
| 		totalCalls = res[3] | ||||
| 		}); | ||||
| 
 | ||||
| 	await connection.end(); | ||||
| 	console.log(callsMade) | ||||
| 	console.log(recordForToday) | ||||
| 		connection.end(); | ||||
| 		return { | ||||
| 			"Calls Made": callsMade[0].call_count, | ||||
| 			"Record for Today of the Year": recordForToday[0].call_count, | ||||
|  | @ -68,6 +64,7 @@ async function getPreviousDayData() { | |||
| 			"System Uptime": getSystemUptime(), | ||||
| 			"All Time Record": null, // Placeholder
 | ||||
| 		}; | ||||
| 	}); | ||||
| } | ||||
| 
 | ||||
| function getSystemUptime() { | ||||
|  | @ -118,7 +115,7 @@ async function sendSummary() { | |||
| 	previousDayEnd.setHours(23, 59, 59, 999); | ||||
| 
 | ||||
| 	let embed = { | ||||
| 		title: `Summary from <t:${Math.floor(previousDayStart/1000)}:f> to <t:${Math.floor(previousDayEnd/1000)}:f>`, | ||||
| 		title: `Summary from <t:${Math.floor(previousDayStart / 1000)}:f> to <t:${Math.floor(previousDayEnd / 1000)}:f>`, | ||||
| 		color: 0x1E90FF, | ||||
| 		fields: [] | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue