nexushub-commands 1.11.0 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/deposit/GetDepositOrder.command.js +2 -0
- package/lib/commands/withdrawal/AdminWithdrawal.command.js +1 -1
- package/lib/instances/commands/ServiceCommand.d.ts +2 -0
- package/lib/instances/commands/ServiceCommand.js +6 -0
- package/lib/instances/commands/index.d.ts +1 -0
- package/lib/instances/commands/index.js +4 -0
- package/lib/instances/index.d.ts +1 -0
- package/lib/instances/index.js +4 -0
- package/package.json +1 -1
- package/src/commands/deposit/GetDepositOrder.command.ts +2 -0
- package/src/commands/withdrawal/AdminWithdrawal.command.ts +1 -1
- package/src/instances/commands/ServiceCommand.ts +1 -0
- package/src/instances/commands/index.ts +1 -0
- package/src/instances/index.ts +1 -0
|
@@ -80,6 +80,7 @@ let GetDepositOrderCommand = class GetDepositOrderCommand extends evogram_1.Comm
|
|
|
80
80
|
],
|
|
81
81
|
},
|
|
82
82
|
});
|
|
83
|
+
break;
|
|
83
84
|
case 'crypto':
|
|
84
85
|
message = yield context.sendFormatted({
|
|
85
86
|
photo: config.images.depositCrypto,
|
|
@@ -101,6 +102,7 @@ let GetDepositOrderCommand = class GetDepositOrderCommand extends evogram_1.Comm
|
|
|
101
102
|
],
|
|
102
103
|
},
|
|
103
104
|
});
|
|
105
|
+
break;
|
|
104
106
|
}
|
|
105
107
|
yield this.client.database.config.set(`order${orderId}`, { chatId: context.chat.id, messageId: message.id });
|
|
106
108
|
});
|
|
@@ -113,7 +113,7 @@ let AdminWithdrawalCommand = AdminWithdrawalCommand_1 = class AdminWithdrawalCom
|
|
|
113
113
|
chat_id: withdrawal.user,
|
|
114
114
|
photo: config.images.withdrawal,
|
|
115
115
|
caption: `<blockquote><b>❌ Отклонена заявка на вывод средств</b></blockquote>\n\n` +
|
|
116
|
-
`<i>— Сумма: {{ ${yield withdrawal.amount.convert({ from: 'RUB', to:
|
|
116
|
+
`<i>— Сумма: {{ ${yield withdrawal.amount.convert({ from: 'RUB', to: user.currency })} }}</i>\n` +
|
|
117
117
|
`<i>— Метод: {{ ${withdrawal.method === 'crypto' ? `Крипто-кошелек ${(_b = withdrawal.coin) === null || _b === void 0 ? void 0 : _b.toUpperCase()}` : withdrawal.method === 'sbp' ? 'Номер телефона' : 'Банковская карта'} }}</i>\n` +
|
|
118
118
|
`<i>— Реквизиты: {{ ${withdrawal.requisites} }}</i>\n` +
|
|
119
119
|
(template === null ? `\n<b>ℹ️ Обратитесь в <a href="https://t.me/${config.support.username}">тех. поддержку</a> для уточнения проблемы.</b>` : ''),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ServiceCommand';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './commands';
|
package/package.json
CHANGED
|
@@ -88,6 +88,7 @@ export class GetDepositOrderCommand extends Command {
|
|
|
88
88
|
},
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
|
+
break
|
|
91
92
|
case 'crypto':
|
|
92
93
|
message = await context.sendFormatted(
|
|
93
94
|
{
|
|
@@ -116,6 +117,7 @@ export class GetDepositOrderCommand extends Command {
|
|
|
116
117
|
},
|
|
117
118
|
}
|
|
118
119
|
)
|
|
120
|
+
break
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
await this.client.database.config.set(`order${orderId}`, { chatId: context.chat.id, messageId: message.id })
|
|
@@ -124,7 +124,7 @@ export class AdminWithdrawalCommand extends Command {
|
|
|
124
124
|
caption:
|
|
125
125
|
`<blockquote><b>❌ Отклонена заявка на вывод средств</b></blockquote>\n\n` +
|
|
126
126
|
|
|
127
|
-
`<i>— Сумма: {{ ${await withdrawal.amount.convert({ from: 'RUB', to:
|
|
127
|
+
`<i>— Сумма: {{ ${await withdrawal.amount.convert({ from: 'RUB', to: user.currency })} }}</i>\n` +
|
|
128
128
|
`<i>— Метод: {{ ${withdrawal.method === 'crypto' ? `Крипто-кошелек ${withdrawal.coin?.toUpperCase()}` : withdrawal.method === 'sbp' ? 'Номер телефона' : 'Банковская карта'} }}</i>\n` +
|
|
129
129
|
`<i>— Реквизиты: {{ ${withdrawal.requisites} }}</i>\n` +
|
|
130
130
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export class ServiceCommand {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ServiceCommand'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './commands'
|