@@ -23,7 +23,7 @@ export const configure = (bot: Telegraf<CommunityContext>) => {
2323 bot . action (
2424 / ^ u p d a t e C o m m u n i t y _ ( [ 0 - 9 a - f ] { 24 } ) $ / ,
2525 userMiddleware ,
26- updateCommunityMessage ,
26+ updateCommunityMessage
2727 ) ;
2828 bot . action ( / ^ e d i t N a m e B t n _ ( [ 0 - 9 a - f ] { 24 } ) $ / , userMiddleware , async ctx => {
2929 await commands . updateCommunity ( ctx , ctx . match [ 1 ] , 'name' ) ;
@@ -36,7 +36,7 @@ export const configure = (bot: Telegraf<CommunityContext>) => {
3636 userMiddleware ,
3737 async ctx => {
3838 await commands . updateCommunity ( ctx , ctx . match [ 1 ] , 'currencies' ) ;
39- } ,
39+ }
4040 ) ;
4141 bot . action ( / ^ e d i t G r o u p B t n _ ( [ 0 - 9 a - f ] { 24 } ) $ / , userMiddleware , async ctx => {
4242 await commands . updateCommunity ( ctx , ctx . match [ 1 ] , 'group' , bot ) ;
@@ -52,26 +52,22 @@ export const configure = (bot: Telegraf<CommunityContext>) => {
5252 userMiddleware ,
5353 async ctx => {
5454 await commands . updateCommunity ( ctx , ctx . match [ 1 ] , 'disputeChannel' , bot ) ;
55- } ,
56- ) ;
57- bot . action (
58- / ^ e d i t L a n g u a g e B t n _ ( [ 0 - 9 a - f ] { 24 } ) $ / ,
59- userMiddleware ,
60- async ctx => {
61- await commands . updateCommunity ( ctx , ctx . match [ 1 ] , 'language' ) ;
6255 }
6356 ) ;
57+ bot . action ( / ^ e d i t L a n g u a g e B t n _ ( [ 0 - 9 a - f ] { 24 } ) $ / , userMiddleware , async ctx => {
58+ await commands . updateCommunity ( ctx , ctx . match [ 1 ] , 'language' ) ;
59+ } ) ;
6460
6561 bot . command ( 'findcomms' , userMiddleware , commands . findCommunity ) ;
6662 bot . action (
6763 / ^ c o m m u n i t y I n f o _ ( [ 0 - 9 a - f ] { 24 } ) $ / ,
6864 userMiddleware ,
69- actions . onCommunityInfo ,
65+ actions . onCommunityInfo
7066 ) ;
7167 bot . action (
7268 / ^ s e t C o m m u n i t y _ ( [ 0 - 9 a - f ] { 24 } ) $ / ,
7369 userMiddleware ,
74- actions . onSetCommunity ,
70+ actions . onSetCommunity
7571 ) ;
7672 bot . action ( 'doNothingBtn' , userMiddleware , async ctx => {
7773 await ctx . deleteMessage ( ) ;
@@ -80,22 +76,22 @@ export const configure = (bot: Telegraf<CommunityContext>) => {
8076 bot . action (
8177 / ^ d e l e t e C o m m u n i t y A s k B t n _ ( [ 0 - 9 a - f ] { 24 } ) $ / ,
8278 userMiddleware ,
83- sureMessage ,
79+ sureMessage
8480 ) ;
8581 bot . action (
8682 / ^ w i t h d r a w E a r n i n g s _ ( [ 0 - 9 a - f ] { 24 } ) $ / ,
8783 userMiddleware ,
88- actions . withdrawEarnings ,
84+ actions . withdrawEarnings
8985 ) ;
9086 bot . action (
9187 / ^ d e l e t e C o m m u n i t y B t n _ ( [ 0 - 9 a - f ] { 24 } ) $ / ,
9288 userMiddleware ,
93- commands . deleteCommunity ,
89+ commands . deleteCommunity
9490 ) ;
9591 bot . action (
9692 / ^ c h a n g e V i s i b i l i t y B t n _ ( [ 0 - 9 a - f ] { 24 } ) $ / ,
9793 userMiddleware ,
98- commands . changeVisibility ,
94+ commands . changeVisibility
9995 ) ;
10096} ;
10197
0 commit comments