From f1f6ad2e69bb5fb14195d65a6f0c1cb4be8a8cd1 Mon Sep 17 00:00:00 2001 From: Szymon Uglis Date: Mon, 3 Jan 2022 01:17:34 +0100 Subject: [PATCH] Release 2.6.1 --- CHANGELOG.md | 5 +++++ lib/src/commands/info_common.dart | 2 +- lib/src/modules/docs.dart | 3 +-- pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b95bb..864eb7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.6.1 + +- Remove package that is not published yet +- Fixup info command + ## 2.6.0 - Add new packages to docs index diff --git a/lib/src/commands/info_common.dart b/lib/src/commands/info_common.dart index 03cd500..d962d9e 100644 --- a/lib/src/commands/info_common.dart +++ b/lib/src/commands/info_common.dart @@ -31,7 +31,7 @@ Future infoGenericCommand(INyxxWebsocket client, [int s ..addField(name: "Memory usage (current/RSS)", content: getMemoryUsageString(), inline: true) ..addField(name: "Uptime", content: formatFull(client.startTime)) ..addField(name: "Last doc update", content: formatFull(await fetchLastDocUpdate())) - ..addField(name: "Last local docs index update", content: formatFull(lastDocCacheUpdate)); + ..addField(name: "Last local docs index update", content: lastDocCacheUpdate != null ? formatFull(lastDocCacheUpdate!) : 'never'); return ComponentMessageBuilder() ..embeds = [embed] diff --git a/lib/src/modules/docs.dart b/lib/src/modules/docs.dart index 64a6007..9f42814 100644 --- a/lib/src/modules/docs.dart +++ b/lib/src/modules/docs.dart @@ -12,10 +12,9 @@ const docUrls = [ "https://pub.dev/documentation/nyxx_lavalink/latest/index.json", "https://pub.dev/documentation/nyxx_extensions/latest/index.json", "https://pub.dev/documentation/nyxx_commands/latest/index.json", - "https://pub.dev/documentation/nyxx_sharding/latest/index.json", ]; -late DateTime lastDocCacheUpdate; +late DateTime? lastDocCacheUpdate; late DateTime lastDocUpdate; DateTime lastDocUpdateTimer = DateTime(2005); diff --git a/pubspec.yaml b/pubspec.yaml index 459bdaf..8dabc2d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: running_on_dart -version: 2.6.0 +version: 2.6.1 description: Discord Bot for nyxx development homepage: https://github.com/nyxx-discord/running_on_dart repository: https://github.com/nyxx-discord/running_on_dart