diff options
| author | Zeyla Hellyer <[email protected]> | 2017-12-15 21:33:22 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-12-16 08:45:26 -0800 |
| commit | c9efd7c147abfd1f92758719141fbb67d9792271 (patch) | |
| tree | 319f4120d2efbf2748dc8ad9c23c1a14ac9e1872 /examples/07_sample_bot_structure/src/commands/meta.rs | |
| parent | Revamp the internals of `Args` (diff) | |
| download | serenity-c9efd7c147abfd1f92758719141fbb67d9792271.tar.xz serenity-c9efd7c147abfd1f92758719141fbb67d9792271.zip | |
Fix compilation of example 07
Diffstat (limited to 'examples/07_sample_bot_structure/src/commands/meta.rs')
| -rw-r--r-- | examples/07_sample_bot_structure/src/commands/meta.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/07_sample_bot_structure/src/commands/meta.rs b/examples/07_sample_bot_structure/src/commands/meta.rs index 18ee48d..49197a8 100644 --- a/examples/07_sample_bot_structure/src/commands/meta.rs +++ b/examples/07_sample_bot_structure/src/commands/meta.rs @@ -1,13 +1,3 @@ -command!(latency(ctx, msg) { - let latency = ctx.shard.lock() - .latency() - .map_or_else(|| "N/A".to_string(), |s| { - format!("{}.{}s", s.as_secs(), s.subsec_nanos()) - }); - - let _ = msg.channel_id.say(latency); -}); - command!(ping(_ctx, msg) { let _ = msg.channel_id.say("Pong!"); }); |