File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,17 @@ class AtBotEnv {
56
56
_clientID = env['botID' ]! .toSnowflake ();
57
57
}
58
58
} else {
59
- /// If the file is not found, throw FileSystemException.
60
- // throw const FileSystemException();
61
- BotLogger .logln (LogType .error, 'Missing `.env` file' );
59
+ // /// If the file is not found, throw FileSystemException.
60
+ // // throw const FileSystemException();
61
+ BotLogger .logln (
62
+ LogType .error, 'Missing `.env` file | Fetching from env' );
63
+ _prefix = Platform .environment['prefix' ];
64
+ _token = Platform .environment['token' ];
65
+ _clientID = Platform .environment['botID' ]! .toSnowflake ();
62
66
}
63
67
} on FileSystemException catch (_) {
64
68
/// Throw an exception if the file is not found.
65
- BotLogger .logln (LogType .error, 'Missing `.env` file' );
69
+ BotLogger .logln (LogType .error, 'Missing `.env` file | Fetching from env ' );
66
70
_prefix = Platform .environment['prefix' ];
67
71
_token = Platform .environment['token' ];
68
72
_clientID = Platform .environment['botID' ]! .toSnowflake ();
You can’t perform that action at this time.
0 commit comments