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

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

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

revision 237 by rakin, Mon Jul 29 17:29:09 2024 UTC revision 241 by rakin, Mon Jul 29 17:29:10 2024 UTC
# Line 25  import Welcomer from '../services/Welcom Line 25  import Welcomer from '../services/Welcom
25  import Antijoin from '../automod/Antijoin';  import Antijoin from '../automod/Antijoin';
26  import Automute from '../automod/Automute';  import Automute from '../automod/Automute';
27  import ServiceManager from './ServiceManager';  import ServiceManager from './ServiceManager';
28    import ChannelLockManager from '../services/ChannelLockManager';
29    
30  export default class DiscordClient extends Client {  export default class DiscordClient extends Client {
31      private _commands = new Collection<string, BaseCommand>();      private _commands = new Collection<string, BaseCommand>();
# Line 56  export default class DiscordClient exten Line 57  export default class DiscordClient exten
57      welcomer: Welcomer = {} as Welcomer;      welcomer: Welcomer = {} as Welcomer;
58      antijoin: Antijoin = {} as Antijoin;      antijoin: Antijoin = {} as Antijoin;
59      automute: Automute = {} as Automute;      automute: Automute = {} as Automute;
60        channelLock: ChannelLockManager = {} as ChannelLockManager;
61    
62      aliases = {      aliases = {
63          automod: path.resolve(__dirname, '..', 'automod'),          automod: path.resolve(__dirname, '..', 'automod'),
# Line 78  export default class DiscordClient exten Line 80  export default class DiscordClient exten
80          "@services/RandomStatus": "randomStatus",          "@services/RandomStatus": "randomStatus",
81          "@services/Verification": "verification",          "@services/Verification": "verification",
82          "@services/Welcomer": "welcomer",          "@services/Welcomer": "welcomer",
83            "@services/ChannelLockManager": "channelLock",
84          "@automod/Antijoin": "antijoin",          "@automod/Antijoin": "antijoin",
85          "@automod/Automute": "automute",          "@automod/Automute": "automute",
86      };      };
# Line 153  export default class DiscordClient exten Line 156  export default class DiscordClient exten
156      }      }
157    
158      async handleCrash(error: Error, origin: NodeJS.UncaughtExceptionOrigin) {      async handleCrash(error: Error, origin: NodeJS.UncaughtExceptionOrigin) {
159            console.log('here');
160          await this.debugLogger.logToHomeServer(`Uncaught ${error.name}: ${error.message}\n${error.stack}`);          await this.debugLogger.logToHomeServer(`Uncaught ${error.name}: ${error.message}\n${error.stack}`);
161      }      }
162  }  }

Legend:
Removed from v.237  
changed lines
  Added in v.241

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26