mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
Add footer to leave log
This commit is contained in:
parent
b5e4f67f8c
commit
4a4ce1b073
@ -65,7 +65,7 @@ export default async(client:TClient,Channel:string,Message:string,ServerName:str
|
|||||||
function playerLogEmbed(player:FSPlayer,joinLog:boolean){
|
function playerLogEmbed(player:FSPlayer,joinLog:boolean){
|
||||||
const logEmbed = new client.embed().setDescription(`**${player.name} ${player.isAdmin ? '| admin' : ''}** ${joinLog ? 'joined' : 'left'} **${ServerName}** at <t:${Math.round(Date.now()/1000)}:t>`);
|
const logEmbed = new client.embed().setDescription(`**${player.name} ${player.isAdmin ? '| admin' : ''}** ${joinLog ? 'joined' : 'left'} **${ServerName}** at <t:${Math.round(Date.now()/1000)}:t>`);
|
||||||
if (joinLog) return logEmbed.setColor(client.config.embedColorGreen);
|
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(){
|
function playerLog(){
|
||||||
// Player leaving
|
// Player leaving
|
||||||
|
Loading…
Reference in New Issue
Block a user