collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: /Txt/ folder, rules.txt. How to hardcode replies for the bot?  (Read 2637 times)

0 Members and 2 Guests are viewing this topic.

Offline Jakereaper

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
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!

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: /Txt/ folder, rules.txt. How to hardcode replies for the bot?
« Reply #1 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.
BeBot Founder and Fixer Kingpin

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: /Txt/ folder, rules.txt. How to hardcode replies for the bot?
« Reply #2 on: June 05, 2010, 11:33:32 pm »
Wouldnt !script module be a better choice for you?
In combination with !alias...
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Jakereaper

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: /Txt/ folder, rules.txt. How to hardcode replies for the bot?
« Reply #3 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!

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 236
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal