Lua Scripting

With Shion you can write Basic Scripts using are built in Lua Scripting Engine.

NOTE: Unless you installed the Shion 6 Lua Hook, these funtions do not work

Varibles for OnCommands

raw - Contains the raw IRC Information
nick - Contains nick of sender
channel - Contains channel where message was sent
server - Contains server message was sent

Commands

Shion_SHA1(string text)
Shion_MessageBox(string message)
Shion_OnHook(string onString, string function)
Shion_DeHook(string onString)
Shion_SendMessage(string server, string channel, string message)
Shion_Echo(string server, string message)
Shion_SendRaw(string server, string raw)

Sample Script

function on_load()
Shion_OnHook("TEXT:^test(.*)", "testinghook")
end

function on_unload()
Shion_DeHook("TEXT:^test(.*)")
end

function testinghook()
Shion_SendMessage(server, channel, "Return Value for hook TEXT:^test(.*)")
end

To Load and Unload Scripts

To load a script its /exe loadluascript <Script Name> <Path to Script>
To unload a script its /exe unloadluascript <Script Name>