File tree 6 files changed +3
-6
lines changed
6 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 9
9
"rules": {
10
10
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
11
11
"@typescript-eslint/no-non-null-assertion": "off",
12
+ "no-console": 1,
12
13
"prettier/prettier": [
13
14
"error",
14
15
{
Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ const setCommandOption = (
103
103
T extends ApplicationCommandOptionBase &
104
104
ApplicationCommandOptionWithChoicesAndAutocompleteMixin < B > ,
105
105
> ( commandOption : T ) : T {
106
- logger . info ( option . choices ) ;
107
106
return option . choices
108
107
? commandOption . addChoices ( ...( option . choices as APIApplicationCommandOptionChoice < B > [ ] ) )
109
108
: commandOption ;
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ const companyAddExecuteCommand: SapphireMessageExecuteType = async (
17
17
if ( ! company_id ) {
18
18
throw new Error ( 'please enter a valid crunchbase company id.' ) ;
19
19
}
20
- console . log ( args ) ;
21
20
const role = args [ 'role' ] ;
22
21
if ( ! role ) {
23
22
throw new Error ( 'please enter your role at this company.' ) ;
Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ const companyFindExecuteCommand: SapphireMessageExecuteType = async (
57
57
throw new Error ( 'This company does not exist in the server!' ) ;
58
58
}
59
59
const companyUsers = await getEmployeesByCompanyId ( < string > company_id ) ;
60
- console . log ( 'here' ) ;
61
- console . log ( companyUsers ) ;
62
60
if ( ! companyUsers . length ) {
63
61
return 'No one works at this company in the server!' ;
64
62
}
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ const companyProfileExecuteCommand: SapphireMessageExecuteType = async (
14
14
const user = getUserFromMessage ( messageFromUser ) ;
15
15
const companies = await getCompaniesByUserId ( user . id ) ;
16
16
// return a string where each line is the company_id - company_name
17
- console . log ( companies ) ;
18
17
const companyString = companies . map ( ( company ) => `${ company . name } - ${ company . role } ` ) . join ( '\n' ) ;
19
18
return `You are associated with the following companies:\n${ companyString } ` ;
20
19
} ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
17
17
} from './suggestion' ;
18
18
import { updateMemberRole , getRoleName , loadRoleMembers } from '../utils/roles' ;
19
19
import { CodeyUserError } from '../codeyUserError' ;
20
+ import { logger } from '../logger/default' ;
20
21
21
22
const NOTIF_CHANNEL_ID : string = vars . NOTIF_CHANNEL_ID ;
22
23
const OFFICE_STATUS_CHANNEL_ID : string = vars . OFFICE_STATUS_CHANNEL_ID ;
@@ -59,7 +60,7 @@ export const createOfficeStatusCron = (client: Client): CronJob =>
59
60
await ( messageChannel as TextChannel ) . setName ( curName ) ;
60
61
const time = Math . floor ( response [ 'time' ] ) ;
61
62
const topic = `Last updated at <t:${ time } :F> for you (<t:${ time } :R>)` ;
62
- await ( messageChannel as TextChannel ) . setTopic ( topic ) . catch ( console . error ) ;
63
+ await ( messageChannel as TextChannel ) . setTopic ( topic ) . catch ( logger . error ) ;
63
64
} else {
64
65
throw 'Bad channel type' ;
65
66
}
You can’t perform that action at this time.
0 commit comments