PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: charlie on 18 August, 2004, 11:22:33

Title: short version of freshstuff?
Post by: charlie on 18 August, 2004, 11:22:33
is it possible to make the short version of freshstuff...

I only need the following commands:

+addrel    --- adds a release name to txt file without date and without name of the adder

+searchrel --- search the txt file for the text an display the line

+showrel  --- show all releases

thx
Title:
Post by: plop on 18 August, 2004, 21:36:19
no need, you can disable all command which you don't want 2 use.
type @config to see how.

plop
Title:
Post by: charlie on 19 August, 2004, 09:30:42
respect... great work

is it possible to send a text from another bot whith the @add command to freshstuff bot?

for example I read out of db file...

local handle = openfile(file, "r")
if (handle ~= nil) then
  local line = read(handle)
  text = line
  text = ReplaceChars(text, "|", "  ")
  SendToAll(bot,text)


the display in main works... but how can i send it to freshstuff?
Title:
Post by: plop on 19 August, 2004, 19:13:34
it's only posible if they are made into 1 script.
the data ptokax send out goes direct 2 the users.
it could cause a endless loop if this wasn't done like this.

plop