# Pastebin H5G7rEEp when / ^ '!uptime' $ / { my $duration; my $uptime = DateTime.now - $start; my ($secs, $mins, $hours) = $uptime.round.polymod(60, 60, 24); if $hours { $duration = "$hours hours, $mins minutes and $secs seconds"; } elsif $mins { $duration = "$mins minutes and $secs seconds"; } else { $duration = "$secs seconds"; } $message.channel.send-message("I've been online for $duration this session.");