/[sudobot]/trunk/src/client/Config.ts
ViewVC logotype

Diff of /trunk/src/client/Config.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 360 by rakin, Mon Jul 29 17:29:46 2024 UTC revision 362 by rakin, Mon Jul 29 17:29:47 2024 UTC
# Line 18  export class Config { Line 18  export class Config {
18    
19      constructor(client: DiscordClient) {      constructor(client: DiscordClient) {
20          this.client = client;          this.client = client;
21            console.log(`ENV: ${process.env.SUDO_PREFIX}`);
22          this.configPath = path.resolve(process.env.SUDO_PREFIX ?? this.client.rootdir, "config", "config.json");          this.configPath = path.resolve(process.env.SUDO_PREFIX ?? this.client.rootdir, "config", "config.json");
23          this.load();          this.load();
24      }      }

Legend:
Removed from v.360  
changed lines
  Added in v.362

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26