/[sudobot]/trunk/src/cli.ts
ViewVC logotype

Diff of /trunk/src/cli.ts

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

revision 77 by rakin, Mon Jul 29 17:28:30 2024 UTC revision 393 by rakin, Mon Jul 29 17:29:59 2024 UTC
# Line 1  Line 1 
1  #!/usr/bin/ts-node  #!/usr/bin/ts-node
2    
3  import { registerCLICommands, registerCommands, registerEvents } from './utils/registry';  /**
4    * This file is part of SudoBot.
5    *
6    * Copyright (C) 2021-2022 OSN Inc.
7    *
8    * SudoBot is free software; you can redistribute it and/or modify it
9    * under the terms of the GNU Affero General Public License as published by
10    * the Free Software Foundation, either version 3 of the License, or
11    * (at your option) any later version.
12    *
13    * SudoBot is distributed in the hope that it will be useful, but
14    * WITHOUT ANY WARRANTY; without even the implied warranty of
15    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16    * GNU Affero General Public License for more details.
17    *
18    * You should have received a copy of the GNU Affero General Public License
19    * along with SudoBot. If not, see <https://www.gnu.org/licenses/>.
20    */
21    
22    import { registerCLICommands } from './utils/registry';
23  import DiscordClient from './client/Client';  import DiscordClient from './client/Client';
24  import { Intents } from 'discord.js';  import { Intents } from 'discord.js';
25  import { config } from 'dotenv';  import { config } from 'dotenv';
26  import { existsSync } from 'fs';  import { existsSync } from 'fs';
27  import path from 'path';  import path from 'path';
 import { registrationEnd, registrationStart } from './utils/debug';  
28  import { yellow } from './utils/util';  import { yellow } from './utils/util';
29    
30  if (existsSync(path.join(__dirname, '../.env'))) {  if (existsSync(path.join(__dirname, '../.env'))) {

Legend:
Removed from v.77  
changed lines
  Added in v.393

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26