cmd/geoipcommand.go   A
last analyzed

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A cmd.GeoIPCommand 0 3 1
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