LUA script

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
Lethargic
Posts: 1
Joined: 2007-01-07 07:49

LUA script

Post by Lethargic » 2007-01-07 07:52

Hello,
I'm totally new to the LUA programming language.
I want to write a script for a DC++ channel that reacts on what someone is saying. For example, is someone says "hello bot", the script must react with an answer. I have made a text-file with the answers in this format: "hello bot|hi, how are you?"
How can I read that text-file in LUA and search for the right answers?
Other advise is also welcome :)

Tia

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2007-01-08 18:24

Where did you want to write the script? DC++ doesn't have any lua scripting capabilities. If you want to run it on a hub, mention what hub you're looking to run it on.

Locked