Passed
Push — master ( 549bf0...6fd40e )
by Viktor
02:41
created

cmd/geoipcommand.go   A

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
// DiceCommand handle dice
0 ignored issues
show
introduced by
comment on exported function GeoIPCommand should be of the form "GeoIPCommand ..."
Loading history...
9
func GeoIPCommand(ctx bot.Context) {
10
	ctx.MetricsCommand("geoip")
11
	ctx.ReplyEmbed("GeoIP", geoip.GetGeoIP(&ctx))
12
}