File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -62,20 +62,23 @@ class Codercord {
62
62
63
63
await client.connect ();
64
64
65
- try {
66
- await loadValues (client);
67
- } catch (error, trace) {
68
- logger.log (
69
- Level .SEVERE ,
70
- "Could not load configuration values." ,
71
- error,
72
- trace,
73
- );
74
- exit (1 );
75
- }
76
- await registerInteractionHandlers ();
77
-
78
65
client.eventsWs.onReady.listen ((event) async {
66
+ logger.info ("Loading config values.." );
67
+ try {
68
+ await loadValues (client);
69
+ } catch (error, trace) {
70
+ logger.log (
71
+ Level .SEVERE ,
72
+ "Could not load configuration values." ,
73
+ error,
74
+ trace,
75
+ );
76
+ exit (1 );
77
+ }
78
+
79
+ logger.info ("Registering commands.." );
80
+ await registerInteractionHandlers ();
81
+
79
82
logger.info ("Codercord is ready !" );
80
83
81
84
logger.info (
@@ -95,7 +98,8 @@ class Codercord {
95
98
//print(e.toString().contains("40058"));
96
99
97
100
logger.info (
98
- "Couldn't send message because thread owner did not post message, retrying in ${retryIn .toString ()}." );
101
+ "Couldn't send message because thread owner did not post message, retrying in ${retryIn .toString ()}." ,
102
+ );
99
103
await Future .delayed (retryIn);
100
104
await event.thread.sendMessage (categoryMultiSelectMessage);
101
105
}
You can’t perform that action at this time.
0 commit comments