BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: Jakereaper on June 05, 2010, 01:57:56 pm

Title: /Txt/ folder, rules.txt. How to hardcode replies for the bot?
Post by: Jakereaper on June 05, 2010, 01:57:56 pm
About the /txt/ folder, I see one file called 'rules.txt'. How does that open in the bot? Or rather.. how can I add other fils into this /txt/  folder, and so the bot can recognize? Or finally, the question is: How can I make the bot reply to what I say, and the reply to be hardcoded? once ago when i used bebot I used that /txt/ folder to add the replies..

Thanks!
Title: Re: /Txt/ folder, rules.txt. How to hardcode replies for the bot?
Post by: Khalem on June 05, 2010, 11:28:49 pm
The txt/ folder is only there to be used by modules that read content from text files directly instead of having the content hard coded into the module itself. The only module that does this by default is the rules module.

i.e. you need to write a module that registers the command(s) you want to use, and have them fetch the output from the given file(s) you place in txt/

The directory is only there to provide a centralized location for module authors to place such files.
Title: Re: /Txt/ folder, rules.txt. How to hardcode replies for the bot?
Post by: Getrix on June 05, 2010, 11:33:32 pm
Wouldnt !script module be a better choice for you?
In combination with !alias...
Title: Re: /Txt/ folder, rules.txt. How to hardcode replies for the bot?
Post by: Jakereaper on June 06, 2010, 12:32:58 am
Thank you for your replies!

I haven't tried yet the !script module. Where can I find some documentation?



My other question: What is the module that makes the bot say: "/tell #BOT# !help" when it has no clue what you wanted it to do?

I would like to edit this part, and instead of this, to read what the user said in that tell.


If you could help me out on both of the above questions, I will be very very gratefull! Thank you!
SimplePortal 2.3.7 © 2008-2024, SimplePortal