1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-26 11:45:37 -05:00

Removed the comments from someone who hurt my feelings

This commit is contained in:
AnxietyisReal 2023-06-11 23:37:22 +10:00
parent 68f9572efd
commit af6925337f
3 changed files with 2 additions and 3 deletions

View File

@ -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 <t:${Math.round(Date.now()/1000)}:t>`);
if (joinLog) return logEmbed.setColor(client.config.embedColorGreen);

View File

@ -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.

View File

@ -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')
})