mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
Proper channel name
This commit is contained in:
parent
b553c5b8b3
commit
b6294fcf8f
@ -44,7 +44,7 @@ setInterval(async()=>{
|
|||||||
await client.dailyMsgs.newDay(formattedDate, total);
|
await client.dailyMsgs.newDay(formattedDate, total);
|
||||||
Logger.console('log', 'DailyMsgs', `Pushed [${formattedDate}, ${total}]`)
|
Logger.console('log', 'DailyMsgs', `Pushed [${formattedDate}, ${total}]`)
|
||||||
|
|
||||||
// Send notification to #bot-logs that the data has been pushed to database.
|
// Send notification to #bot-log that the data has been pushed to database.
|
||||||
const commands = await client.guilds.cache.get(client.config.dcServer.id)?.commands.fetch();
|
const commands = await client.guilds.cache.get(client.config.dcServer.id)?.commands.fetch();
|
||||||
if (commands) (client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [
|
if (commands) (client.channels.resolve(client.config.dcServer.channels.logs) as Discord.TextChannel).send({embeds: [
|
||||||
new client.embed().setDescription(`Pushed the following\ndata to </rank leaderboard:${commands.find(x=>x.name === 'rank').id}>`).setFields(
|
new client.embed().setDescription(`Pushed the following\ndata to </rank leaderboard:${commands.find(x=>x.name === 'rank').id}>`).setFields(
|
||||||
|
Loading…
Reference in New Issue
Block a user