From 317fe4e298ab537da4dc47cadfe149b168ceda50 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 5 Jan 2025 08:55:26 +0100 Subject: [PATCH] msg length 2000 smh and startup message --- bin/jana.dart | 6 ++++-- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/jana.dart b/bin/jana.dart index d4a6db7..3ba9d3e 100644 --- a/bin/jana.dart +++ b/bin/jana.dart @@ -92,8 +92,8 @@ void main(List argv) async { if (rec.stackTrace != null) { msg += '\nStack trace:\n```${rec.stackTrace}```'; } - if (msg.length > 3950) { - msg = '${msg.substring(0, 3950)} ... (see logs for full message)'; + if (msg.length > 1950) { + msg = '${msg.substring(0, 1950)} ... (see logs for full message)'; } if (lastLogMsg == msg) { lastLog @@ -106,6 +106,8 @@ void main(List argv) async { } })); + bot.onReady.listen((_) => log.info('jana v2 is ready')); + bot.onMessageCreate.listen((event) async { final msg = event.message; diff --git a/pubspec.yaml b/pubspec.yaml index 97e18c0..4731aca 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: jana description: A Discord bot -version: 2.0.0-beta.6 +version: 2.0.0-beta.7 homepage: https://github.com/chrissxMedia/jana environment: