Skip to content

Commit

Permalink
msg length 2000 smh and startup message
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelcmtd committed Jan 5, 2025
1 parent c1460eb commit 317fe4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bin/jana.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ void main(List<String> 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
Expand All @@ -106,6 +106,8 @@ void main(List<String> argv) async {
}
}));

bot.onReady.listen((_) => log.info('jana v2 is ready'));

bot.onMessageCreate.listen((event) async {
final msg = event.message;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 317fe4e

Please sign in to comment.