From 12edd5c5a2727446b72fdbf10f6ead9c62b6dacf Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 13 Jan 2016 02:25:11 +1100 Subject: [PATCH] Made the AI module use the global nick settings --- hooks/ai.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/ai.lua b/hooks/ai.lua index 56fe9b3..7bf7912 100644 --- a/hooks/ai.lua +++ b/hooks/ai.lua @@ -1,6 +1,6 @@ nick,chan,message = ... local serialization = require "serialization" -lnick = "yukichan" +lnick = config.nick --print(lnick,nick,chan,message) if string.find(message,lnick) ~= nil and nick ~= "Shocky" then -- print("Message addressed to AI!") @@ -37,7 +37,7 @@ if string.find(message,lnick) ~= nil and nick ~= "Shocky" then selstring = aitab[selection][1][1] if type(selstring) == "table" then for k,v in pairs(selstring) do - print(k.."="..v) + --print(k.."="..v) end end print("Selected response: " .. selstring)