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

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

LUA script

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

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 :)


DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46

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.