From 701b87a5d23dcb3b942e95a2d823ea44e595e385 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Wed, 15 Mar 2017 21:20:51 +0100 Subject: [PATCH] Use less generic variables names (since they are global) --- mods/metafora.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/metafora.go b/mods/metafora.go index bb454f8..bb5eec1 100644 --- a/mods/metafora.go +++ b/mods/metafora.go @@ -6,7 +6,7 @@ import ( "github.com/hamcha/clessy/tg" ) -var actions = []string{ +var metaactions = []string{ "Puppami", "Degustami", "Lucidami", "Manipolami", "Disidratami", "Irritami", "Martorizzami", "Lustrami", "Osannami", "Sorseggiami", "Assaporami", "Apostrofami", "Spremimi", "Dimenami", "Agitami", "Stimolami", "Suonami", "Strimpellami", "Stuzzicami", "Spintonami", "Sguinzagliami", @@ -14,7 +14,7 @@ var actions = []string{ "Accordami", "Debuggami", "Accarezzami", "Revisionami", } -var objects = []string{ +var metaobjects = []string{ "il birillo", "il bastone", "l'ombrello", "il malloppo", "il manico", "il manganello", "il ferro", "la mazza", "l'archibugio", "il timone", "l'arpione", "il flauto", "la reliquia", "il fioretto", "lo scettro", "il campanile", "la proboscide", "il pino", "il maritozzo", "il perno", @@ -25,9 +25,9 @@ var objects = []string{ func metafora(broker *tg.Broker, update tg.APIMessage) { if isCommand(update, "metafora") { - n := rand.Intn(len(actions)) - m := rand.Intn(len(objects)) - broker.SendTextMessage(update.Chat, actions[n]+" "+objects[m], nil) + n := rand.Intn(len(metaactions)) + m := rand.Intn(len(metaobjects)) + broker.SendTextMessage(update.Chat, metaactions[n]+" "+metaobjects[m], nil) return } }