forked from projectmoon/tenebrous-dicebot
Log when we are performing initial sync.
This commit is contained in:
parent
9ab65b8943
commit
693167a581
|
@ -157,6 +157,7 @@ impl DiceBot {
|
||||||
// Initial sync without event handler prevents responding to
|
// Initial sync without event handler prevents responding to
|
||||||
// messages received while bot was offline. TODO: selectively
|
// messages received while bot was offline. TODO: selectively
|
||||||
// respond to old messages? e.g. comands missed while offline.
|
// 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?;
|
self.client.sync_once(SyncSettings::default()).await?;
|
||||||
|
|
||||||
client.add_event_emitter(Box::new(self)).await;
|
client.add_event_emitter(Box::new(self)).await;
|
||||||
|
|
Loading…
Reference in New Issue