File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
. " $( dirname -- " $0 " ) /_/husky.sh"
3
3
4
- pretty-quick --staged
4
+ npx pretty-quick --staged
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ export async function hookLog(client: Client<true>) {
17
17
( await client . guilds . fetch ( ) ) . first ( ) ! . id ,
18
18
) ! ;
19
19
const channel = ( await guild . channels . fetch ( logChannelId ) ) as TextChannel ;
20
- console . log ( 'Writing logs to' , channel ) ;
21
20
let curLogText = '' ;
22
21
let timeout : NodeJS . Timeout | null = null ;
23
22
const origLog = console . log ;
@@ -30,6 +29,7 @@ export async function hookLog(client: Client<true>) {
30
29
origError ( ...args ) ;
31
30
postLog ( [ '[ERROR]' , ...args ] ) ;
32
31
} ;
32
+ console . log ( 'Writing logs to' , channel ) ;
33
33
function argToString ( arg : unknown ) {
34
34
if ( typeof arg === 'string' ) return arg ;
35
35
return inspect ( arg ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { sendWithMessageOwnership } from '../util/send';
6
6
function getCategoryHelp ( cat : string , commands : Iterable < CommandRegistration > ) {
7
7
const out : string [ ] = [ ] ;
8
8
9
- for ( const cmd of commands ) {
9
+ for ( const cmd of new Set ( commands ) ) {
10
10
if ( ! cmd . description ) continue ;
11
11
const [ cat2 , description ] = splitCategoryDescription ( cmd . description ) ;
12
12
if ( cat !== cat2 ) continue ;
Original file line number Diff line number Diff line change @@ -390,7 +390,6 @@ export function helpThreadModule(bot: Bot) {
390
390
bot . registerAdminCommand ( {
391
391
aliases : [ 'htgh' ] ,
392
392
async listener ( msg ) {
393
- if ( ! bot . isMod ( msg . member ) ) return ;
394
393
if (
395
394
msg . channel . id !== howToGetHelpChannel &&
396
395
msg . channel . id !== howToGiveHelpChannel
You can’t perform that action at this time.
0 commit comments