| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | package cmd |
||
| 2 | |||
| 3 | import ( |
||
| 4 | "github.com/FlameInTheDark/dtbot/api/yandexmap" |
||
| 5 | "github.com/FlameInTheDark/dtbot/bot" |
||
| 6 | ) |
||
| 7 | |||
| 8 | // WeatherCommand weather handler |
||
|
|
|||
| 9 | func YandexmapCommand(ctx bot.Context) { |
||
| 10 | buf, err := yandexmap.GetMapImage(&ctx) |
||
| 11 | if err != nil { |
||
| 12 | ctx.DB.Log("Map", ctx.Guild.ID, err.Error()) |
||
| 13 | return |
||
| 14 | } |
||
| 15 | ctx.ReplyFile("map.png",buf) |
||
| 16 | } |