Log when we are performing initial sync.

This commit is contained in:
projectmoon 2021-02-09 21:59:32 +00:00
parent 9ab65b8943
commit 693167a581
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ impl DiceBot {
// Initial sync without event handler prevents responding to
// messages received while bot was offline. TODO: selectively
// respond to old messages? e.g. comands missed while offline.
info!("Performing intial sync (no commands will be responded to)");
self.client.sync_once(SyncSettings::default()).await?;
client.add_event_emitter(Box::new(self)).await;