cmd.NewsCommand   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/news"
5
	"github.com/FlameInTheDark/dtbot/bot"
6
)
7
8
// NewsCommand News handler
9
func NewsCommand(ctx bot.Context) {
10
	ctx.MetricsCommand("news", "main")
11
	_ = news.GetNews(&ctx)
12
}
13