diff --git a/src/MPLoop.ts b/src/MPLoop.ts index 9438b42..bb5bd61 100644 --- a/src/MPLoop.ts +++ b/src/MPLoop.ts @@ -61,7 +61,7 @@ export default async(client:TClient,Channel:string,Message:string,ServerName:str var n = Number(number); return n.toLocaleString(undefined, {minimumFractionDigits: digits})+icon } - // Join/Leave log - Dorime to tae for examples :dorime: + // Join/Leave log 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); diff --git a/src/client.ts b/src/client.ts index f3770ef..9d0f093 100644 --- a/src/client.ts +++ b/src/client.ts @@ -216,4 +216,3 @@ export class WClient extends WebhookClient { this.tokens = tokens as Tokens; } } -// hi tae, ik you went to look for secret hello msgs in here too. \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index bbd9227..ef8dcf7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,7 +21,7 @@ client.on('ready', async()=>{ }; console.log(`${client.user.username} has logged into Discord API`); console.log(client.config.botSwitches, client.config.whitelistedServers); - (client.channels.resolve(client.config.mainServer.channels.bot_status) as Discord.TextChannel).send({content: `${client.user.username} is active`, embeds:[new client.embed().setColor(client.config.embedColor).setDescription(`\`\`\`json\n${Object.entries(client.config.botSwitches).map(hiTae=>`${hiTae[0]}: ${hiTae[1]}`).join('\n')}\`\`\``)]}); + (client.channels.resolve(client.config.mainServer.channels.bot_status) as Discord.TextChannel).send({content: `${client.user.username} is active`, embeds:[new client.embed().setColor(client.config.embedColor).setDescription(`\`\`\`json\n${Object.entries(client.config.botSwitches).map(x=>`${x[0]}: ${x[1]}`).join('\n')}\`\`\``)]}); console.timeEnd('Startup') })