Skip to content

Commit 4ba6886

Browse files
committed
fix formatting and localize translation
1 parent 18798e8 commit 4ba6886

File tree

12 files changed

+274
-259
lines changed

12 files changed

+274
-259
lines changed

bot/messages.ts

Lines changed: 145 additions & 145 deletions
Large diffs are not rendered by default.

bot/modules/community/index.ts

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const configure = (bot: Telegraf<CommunityContext>) => {
2323
bot.action(
2424
/^updateCommunity_([0-9a-f]{24})$/,
2525
userMiddleware,
26-
updateCommunityMessage,
26+
updateCommunityMessage
2727
);
2828
bot.action(/^editNameBtn_([0-9a-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(/^editGroupBtn_([0-9a-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-
/^editLanguageBtn_([0-9a-f]{24})$/,
59-
userMiddleware,
60-
async ctx => {
61-
await commands.updateCommunity(ctx, ctx.match[1], 'language');
6255
}
6356
);
57+
bot.action(/^editLanguageBtn_([0-9a-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
/^communityInfo_([0-9a-f]{24})$/,
6864
userMiddleware,
69-
actions.onCommunityInfo,
65+
actions.onCommunityInfo
7066
);
7167
bot.action(
7268
/^setCommunity_([0-9a-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
/^deleteCommunityAskBtn_([0-9a-f]{24})$/,
8278
userMiddleware,
83-
sureMessage,
79+
sureMessage
8480
);
8581
bot.action(
8682
/^withdrawEarnings_([0-9a-f]{24})$/,
8783
userMiddleware,
88-
actions.withdrawEarnings,
84+
actions.withdrawEarnings
8985
);
9086
bot.action(
9187
/^deleteCommunityBtn_([0-9a-f]{24})$/,
9288
userMiddleware,
93-
commands.deleteCommunity,
89+
commands.deleteCommunity
9490
);
9591
bot.action(
9692
/^changeVisibilityBtn_([0-9a-f]{24})$/,
9793
userMiddleware,
98-
commands.changeVisibility,
94+
commands.changeVisibility
9995
);
10096
};
10197

0 commit comments

Comments
 (0)