From 4a4ce1b073f05d5c4f41403e26a81452a166acc3 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Mon, 12 Jun 2023 14:33:29 +1000 Subject: [PATCH] Add footer to leave log --- src/MPLoop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MPLoop.ts b/src/MPLoop.ts index bb5bd61..55a3f8a 100644 --- a/src/MPLoop.ts +++ b/src/MPLoop.ts @@ -65,7 +65,7 @@ export default async(client:TClient,Channel:string,Message:string,ServerName:str function playerLogEmbed(player:FSPlayer,joinLog:boolean){ const logEmbed = new client.embed().setDescription(`**${player.name} ${player.isAdmin ? '| admin' : ''}** ${joinLog ? 'joined' : 'left'} **${ServerName}** at `); if (joinLog) return logEmbed.setColor(client.config.embedColorGreen); - else return logEmbed.setColor(client.config.embedColorRed) + else return logEmbed.setColor(client.config.embedColorRed).setFooter({text:`Farmed for ${client.formatPlayerUptime(player.uptime)}`}) } function playerLog(){ // Player leaving