You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added answer command
* Corrected cuddle, explode, hug, kiss, and pat commands to include a syntax
* Help command description updated
* Correct messageDelete event audit log checking data
* Overhaul the invite caching system in ready event
* Speaking of invites, check out the new inviteinfo command that gets info on a invite! How cool!
* Changed eula-data to be more simple as the EULA has been moved to the TCB website.
* Fixed a spelling mistake in eula.js (special thanks to IDeletedSystem64 for pointing that out)
* Dependenices for Extras now load in Extras
* Corrected verify command to check permissions correctly
* Corrected config command to check permissions correctly
* Updated cuddle, explode, hug, kiss, and pat commands to include the new image sending system.
* Fixed a possibly in the app.js that when logging to the console the time it took that it may return a negative value and sometimes completely incorrect values.
Copy file name to clipboardExpand all lines: src/app/cfg/app.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -312,19 +312,19 @@ const app = {
312
312
if(message.channel)
313
313
message.channel.send(options).then(msg=>{
314
314
if(message.createdTimestamp)
315
-
app.logger.debug("DISCORD",`[MESSAGE] Got message in ${(currTime-message.createdTimestamp)/1000}ms. | Responded in ${(currTime-msg.createdTimestamp)/1000}ms.`);
315
+
app.logger.debug("DISCORD",`[MESSAGE] Got message in ${(currTime-message.createdTimestamp)}ms. | Responded in ${(msg.createdTimestamp-currTime)}ms.`);
316
316
if(callback!=null)callback(msg);
317
317
}).catch(err=>{app.logger.warn("DISCORD",`[MESSAGE] Message failed to send! Error: ${err.message}`)});
318
318
else
319
319
message.send(options).then(msg=>{if(callback!=null)callback(msg);}).catch(err=>{app.logger.warn("DISCORD",`[MESSAGE] Message failed to send! Error: ${err.message}`)});
320
320
}elseif(action==1){
321
321
if(!message.channel)return;// Hate to break it, but you can't edit a channel as a message. 💀 (imagine that)
322
322
if(message.edit)message.edit(options).then(msg=>{
323
-
if(message.editedTimestamp)app.logger.debug("DISCORD",`[MESSAGE] Edited message in ${(currTime-msg.editedTimestamp)/1000}ms.`);
323
+
if(message.editedTimestamp)app.logger.debug("DISCORD",`[MESSAGE] Edited message in ${(msg.editedTimestamp-currTime)}ms.`);
324
324
if(callback!=null)callback(msg);
325
325
}).catch(err=>{app.logger.warn("DISCORD",`[MESSAGE] Message failed to edit! Error: ${err.message}`)});
0 commit comments