mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-14 03:09:59 +00:00
Handle osu! command when the module is not initialized
This commit is contained in:
@@ -39,6 +39,10 @@ class App {
|
||||
}
|
||||
|
||||
public load_osu(): void {
|
||||
if (!Environment.get().OSU_API_KEY) {
|
||||
Logger.log('warn', 'OSU_API_KEY is not defined in .env, osu! features will be disabled');
|
||||
return;
|
||||
}
|
||||
Logger.log('info', 'Loading osu! Client');
|
||||
osu.init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user