| Conditions | 1 |
| Total Lines | 5 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package bot |
||
| 9 | func (ctx *Context) MetricsCommand(command string) { |
||
|
|
|||
| 10 | query := []byte(fmt.Sprintf("commands,server=%v,user=%v command=\"%v\"", ctx.Guild.ID, ctx.Message.Author.ID, command)) |
||
| 11 | addr := fmt.Sprintf("%v/write?db=%v", ctx.Conf.Metrics.Address, ctx.Conf.Metrics.Database) |
||
| 12 | r := bytes.NewReader(query) |
||
| 13 | _, _ = http.Post(addr, "", r) |
||
| 14 | } |
||
| 28 | } |