From f7c92055d1221765a7189d952a615bdc0b514cf1 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sat, 6 May 2023 22:56:00 +0200 Subject: [PATCH] fix some command error messages --- cmd/nourybot/commands.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/nourybot/commands.go b/cmd/nourybot/commands.go index a02b9d3..eafc962 100644 --- a/cmd/nourybot/commands.go +++ b/cmd/nourybot/commands.go @@ -35,7 +35,7 @@ func (app *Application) ParseCommand(evt *event.Event) { return } else { if resp, err := commands.Currency(cmdParams[1], cmdParams[2], cmdParams[4]); err != nil { - app.Log.Error().Err(err).Msg("Failed to handle Xkcd command") + app.Log.Error().Err(err).Msg("failed to handle currency command") app.SendText(evt, "Something went wrong.") return } else { @@ -46,7 +46,7 @@ func (app *Application) ParseCommand(evt *event.Event) { case "ping": if resp, err := commands.Ping(); err != nil { - app.Log.Error().Err(err).Msg("Failed to handle Ping command") + app.Log.Error().Err(err).Msg("failed to handle ping command") app.SendText(evt, "Something went wrong.") return } else { @@ -57,7 +57,7 @@ func (app *Application) ParseCommand(evt *event.Event) { case "random": if msgLen == 2 && cmdParams[1] == "xkcd" { if resp, err := commands.RandomXkcd(); err != nil { - app.Log.Error().Err(err).Msg("Failed to handle Xkcd command") + app.Log.Error().Err(err).Msg("failed to handle random->xkcd command") app.SendText(evt, "Something went wrong.") return } else { @@ -69,7 +69,7 @@ func (app *Application) ParseCommand(evt *event.Event) { case "xkcd": if msgLen == 2 && cmdParams[1] == "random" { if resp, err := commands.RandomXkcd(); err != nil { - app.Log.Error().Err(err).Msg("Failed to handle Xkcd command") + app.Log.Error().Err(err).Msg("failed to handle xkcd->randomXkcd command") app.SendText(evt, "Something went wrong.") return } else { @@ -78,7 +78,7 @@ func (app *Application) ParseCommand(evt *event.Event) { } } else if msgLen == 1 { if resp, err := commands.Xkcd(); err != nil { - app.Log.Error().Err(err).Msg("Failed to handle Xkcd command") + app.Log.Error().Err(err).Msg("failed to handle xkcd command") app.SendText(evt, "Something went wrong.") return } else {