From eae570f3a8d0fc0bcd2f34672af3b30e2a8a9251 Mon Sep 17 00:00:00 2001 From: Matthieu Lalonde Date: Wed, 27 Jan 2021 21:13:10 +0000 Subject: [PATCH] Exported utils GetBOFHExcuse --- pkg/utils/excuses.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/utils/excuses.go b/pkg/utils/excuses.go index 35e7490..f0bc452 100644 --- a/pkg/utils/excuses.go +++ b/pkg/utils/excuses.go @@ -1,4 +1,4 @@ -package bot +package utils import ( "math/rand" @@ -532,8 +532,8 @@ var BOFHExcuses []string = []string{ "Your machine had the fuses in backwards.", } -// getExcuse gets a random excuse from a list of excuses and writes it out -func getBOFHExcuse() string { +// GetBOFHExcuse gets a random excuse from a list of excuses and writes it out +func GetBOFHExcuse() string { return BOFHExcuses[randIdx(len(BOFHExcuses)-1)] }