Skip to content

Commit

Permalink
Deploy and release 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Nov 20, 2022
1 parent 8980265 commit 9429444
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 3.1.0

- Fixup tag deleting (invalid column in db)
- Add bot version to /info command

## 3.0.2

- Fixup tag deleting
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.9'
services:
running_on_dart:
image: ghcr.io/nyxx-discord/running_on_dart:3.0.2
image: ghcr.io/nyxx-discord/running_on_dart:3.1.0
container_name: running_on_dart
env_file:
- .env
Expand Down
3 changes: 2 additions & 1 deletion lib/src/commands/info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ ChatCommand info = ChatCommand(
})
..addFooter((footer) {
footer.text = 'nyxx ${Constants.version}'
' | $version'
' | Shard ${(context.guild?.shard.id ?? 0) + 1} of ${(context.client as INyxxWebsocket).shards}'
' | Dart SDK version ${Platform.version.split('(').first}';
' | Dart SDK ${Platform.version.split('(').first}';
})
..addField(name: 'Cached guilds', content: context.client.guilds.length, inline: true)
..addField(name: 'Cached users', content: context.client.users.length, inline: true)
Expand Down
2 changes: 1 addition & 1 deletion lib/src/services/db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class DatabaseService {
await _ready;

final result = await _connection.query('''
SELECT tu.* FROM tag_usage tu JOIN tags t ON t.id = tu.tag_id AND t.enabled = TRUE;
SELECT tu.* FROM tag_usage tu JOIN tags t ON t.id = tu.command_id AND t.enabled = TRUE;
''');

return result.map(TagUsedEvent.fromRow);
Expand Down
2 changes: 2 additions & 0 deletions lib/src/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import 'dart:io';

import 'package:nyxx/nyxx.dart';

String get version => '3.1.0';

/// Get a [String] from an environment variable, throwing an exception if it is not set.
///
/// If [def] is provided and the environment variable [key] is not set, [def] will be returned
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: running_on_dart
version: 3.0.1
version: 3.1.0
description: Discord Bot for nyxx development
homepage: https://github.com/nyxx-discord/running_on_dart
repository: https://github.com/nyxx-discord/running_on_dart
Expand Down

0 comments on commit 9429444

Please sign in to comment.