File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
- require ( 'websocket-polyfill' ) ; // is it needed?
1
+ require ( 'websocket-polyfill' ) ;
2
2
import { logger } from '../../../logger' ;
3
3
import * as Config from './config' ;
4
4
import { createOrderEvent } from './events' ;
5
5
import * as Commands from './commands' ;
6
6
import { Telegraf } from 'telegraf' ;
7
7
import { MainContext } from '../../start' ;
8
8
import { IOrder } from '../../../models/order' ;
9
+ import CommunityEvents from '../events/community' ;
9
10
10
11
export const configure = ( bot : Telegraf < MainContext > ) => {
11
12
bot . command ( '/nostr' , Commands . info ) ;
@@ -16,9 +17,6 @@ export const configure = (bot: Telegraf<MainContext>) => {
16
17
) ;
17
18
}
18
19
19
- // I don't know why these requires are here and not at the top of the file,
20
- // so I leave them as they are instead of converting to imports.
21
- const CommunityEvents = require ( '../events/community' ) ;
22
20
CommunityEvents . onCommunityUpdated ( async ( community : any ) => {
23
21
// todo: notify users
24
22
} ) ;
You can’t perform that action at this time.
0 commit comments