Skip to content

Commit

Permalink
fix: add more aliases to tip cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanddd committed Feb 7, 2024
1 parent 9670eda commit 66b3667
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
3 changes: 3 additions & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export const slashCommands: Record<string, SlashCommand> = {
//
tip: tip.slashCmd,
send: tip.slashCmd,
shoutout: tip.slashCmd,
kudos: tip.slashCmd,
kudo: tip.slashCmd,
//
balances: balances.slashCmd,
balance: balances.slashCmd,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/tip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const textCmd: Command = {
canRunWithoutAction: true,
colorType: "Defi",
minArguments: 3,
aliases: ["send"],
aliases: ["send", "shoutout", "kudos", "kudo"],
}

const slashCmd: SlashCommand = {
Expand Down
28 changes: 15 additions & 13 deletions src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1164,22 +1164,24 @@ export interface ResponseAssetTokenChain {
type?: string
}

export interface ResponseBinanceFutureAccountBalance {
accountAlias?: string
asset?: string
availableBalance?: string
balance?: string
crossUnPnl?: string
crossWalletBalance?: string
marginAvailable?: boolean
maxWithdrawAmount?: string
updateTime?: number
}

export interface ResponseBinanceFutureAccountPositionResponse {
data?: ResponseBinanceFuturePositionInformation[]
}

export interface ResponseBinanceFutureBalanceResponse {
account_alias?: string
asset?: string
available_balance?: string
balance?: string
cross_un_pnl?: string
cross_wallet_balance?: string
margin_available?: boolean
max_withdraw_amount?: string
token?: ResponseAssetToken
update_time?: number
usd_balance?: number
}

export interface ResponseBinanceFuturePositionInfo {
entryPrice?: string
isAutoAddMargin?: string
Expand Down Expand Up @@ -1521,7 +1523,7 @@ export interface ResponseGetAllDaoProposals {
export interface ResponseGetBinanceAsset {
asset?: ResponseWalletAssetData[]
earn?: ResponseWalletAssetData[]
future?: ResponseBinanceFutureAccountBalance[]
future?: ResponseBinanceFutureBalanceResponse[]
simple_earn?: ResponseWalletBinanceAssetSimpleEarnResponse
}

Expand Down

0 comments on commit 66b3667

Please sign in to comment.