Use less generic variables names (since they are global)

This commit is contained in:
Hamcha 2017-03-15 21:20:51 +01:00
parent 8e85a6fddc
commit 701b87a5d2
1 changed files with 5 additions and 5 deletions

View File

@ -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
}
}