Commit graph

12 commits

Author SHA1 Message Date
Maybe Waffle
dd4af30727 Move ctrlc handler enable function to DispatcherBuilder
This helps with consistency -- every setting is changed in builder.
Also `Self -> Self` function sometimes plays more nicely with borrowck.
2022-07-21 13:32:05 +04:00
Hirrolot
a48f6c8a44 Use Arc<AtomicU64> in examples/shared_state.rs 2022-06-29 01:49:49 +06:00
Hirrolot
b8c3f48c7f Harmonise example bot initial logs 2022-04-27 01:00:08 +06:00
Hirrolot
5838b31834 Capture identifier in format strings (examples/) 2022-04-03 16:06:44 +06:00
Hirrolot
fa5d1f738b Remove support for the old dispatching 2022-03-29 01:55:09 +06:00
Maybe Waffle
dbc7633fdb Deprecate enable_logging! in favour of configuring logging yourself 2022-03-21 18:55:34 +04:00
Hirrolot
09c3424097 Replace lazy_static with once_cell 2022-02-04 20:14:57 +06:00
Hirrolot
9efa2f6cbd DispatcherBuilder::new => Dispatcher::builder 2022-02-04 20:09:53 +06:00
Hirrolot
3307a0915c Use .setup_ctrlc_handler() in the examples 2022-02-03 16:34:40 +06:00
Hirrolot
62934f29bd Harmonise naming convention across the examples 2022-02-02 15:40:22 +06:00
Hirrolot
21eb048ca2 Decouple Dispatcher from DispatcherBuilder 2022-02-02 04:51:36 +06:00
Hirrolot
3b3f5f855f Make all examples just *.rs files 2022-02-02 03:54:00 +06:00
Renamed from examples/shared_state_bot/src/main.rs (Browse further)