cmd/currencycommand.go   A
last analyzed

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A cmd.CurrencyCommand 0 2 1
1
package cmd
2
3
import (
4
	"fmt"
5
6
	"github.com/FlameInTheDark/dtbot/api/currency"
7
	"github.com/FlameInTheDark/dtbot/bot"
8
)
9
10
// CurrencyCommand Translate handler
11
func CurrencyCommand(ctx bot.Context) {
12
	ctx.ReplyEmbed(fmt.Sprintf("%v:", ctx.Loc("currency")), currency.GetCurrency(&ctx))
13
}
14