cmd.GeoIPCommand   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
package cmd
2
3
import (
4
	"github.com/FlameInTheDark/dtbot/api/geoip"
5
	"github.com/FlameInTheDark/dtbot/bot"
6
)
7
8
// GeoIPCommand handle dice
9
func GeoIPCommand(ctx bot.Context) {
10
	ctx.MetricsCommand("geoip", "main")
11
	ctx.ReplyEmbed("GeoIP", geoip.GetGeoIP(&ctx))
12
}
13