Fresh stuffs
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Fresh stuffs

Started by jack_port1000, 23 June, 2007, 22:33:42

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jack_port1000

Is tat possible ???  if any user add any fresh stuff in main chat bot directly add tat stuff at MOTD
so we dont have to edit MOTD every day and we send updated MOTD in PM when user join the Hub



bastya_elvtars

What release bot are you using?
Everything could have been anything else and it would have just as much meaning.

jack_port1000

still i dont have any bot for fresh stuff right now but i use any bot if u suggest with potkax

bastya_elvtars

FreshStuff3 does send new releases in PM/main on connect.
Everything could have been anything else and it would have just as much meaning.

jack_port1000

Thanks dude you help us every time  :)
can u pls give me a download link

bastya_elvtars

For the latest stable version, the link is here, but you can also try the new test version which is likely to be buggy but usable.
Everything could have been anything else and it would have just as much meaning.

jack_port1000

This is some error here

no field package.preload['pxlfs']
no file 'freshstuff/pxlfs.lua'
no file 'freshstuff/lib/pxlfs.dll'

-- FreshStuff3 v5 alpha2
-- License: GNU GPL v2
-- This is the common script that gets loaded by host apps, then takes care of everything else :-D
-- Characteristics (well, proposed - no, they are almost real as of end-feb 2007): modular and portable among host programs

--------
-- TODO:
--------
  -- make the script fully portable, i. e. it can use all stuff from the host program, while it interoperates with it smoothly (especially data sending)
  -- Showing latest n releases... (?)
  -- Split this config below into module-specific parts.
  -- Add a prune function for completed requests (low priority, since they get autodeleted upon the requester's joining.) -- WON'T BE DONE UNTIL EXPLICITLY REQUESTED
  -- Document stuff for module developers
  -- Category deletion: same for requests
  -- Request recycle bin? -- IN RPOGRESS
  -- Add package.loaded check for host modules, and put hostmodule-specific loaders into a big global table
  -- Fix OnSomethingDone() in ptokax.lua
  -- Multilanguage. *shrugs*
  
  -- Release rating plugin (reworked metatable for AllStuff, rating goes by indices of course, stored by nicks) - POST-5.0
  -- RSS plugin (generate staticpage, any webserver should be able to serve that, content rss etc. etc.) - POST-5.0

Bot = {
        name="post-it_memo",
        email="bastyaelvtars@gmail.com",
        desc="Release bot",
        version="5.0 pre-alpha",
      } -- Set the bot's data. (Relevant only for hubsofts, so hubsoftmodule-specific)
    ProfilesUsed= 0 -- 0 for lawmaker/terminator (standard), 1 for robocop, 2 for psyguard (ptokax-only)
    Commands={
      Add="addrel", -- Add a new release
      Show="releases", -- This command shows the stuff, syntax : +albums with options new/game/warez/music/movie
      Delete="delrel", -- This command deletes an entry, syntax : +delalbum THESTUFF2DELETE
      ReLoad="reloadrel", -- This command reloads the txt file. syntax : +reloadalbums (this command is needed if you manualy edit the text file)
      Search="searchrel", -- This is for searching inside releases.
      AddCatgry="addcat", -- For adding a category
      DelCatgry="delcat", -- For deleting a category
      ShowCtgrs="showcats", -- For showing categories
      Prune="prunerel", -- Pruning releases (removing old entries)
      TopAdders="topadders", -- Showing top adders
      Help="relhelp", -- Guess what! :P
      AddReq="addreq",
      ShowReqs="requests",
      DelReq="delreq",
    } -- No prefix for commands! It is automatically added. (<--- multiple prefixes)
    Levels={
      Add=1, -- adding
      Show=1, -- showing all
      Delete=4,   -- Delete releases. Note that everyone is allowed to delete the releases they added.
      ReLoad=4,   -- reload
      Search=1, -- search
      AddCatgry=4, -- add category
      DelCatgry=4, -- delete category
      ShowCtgrs=1, -- show categories
      Prune=5, -- prune (delete old)
      TopAdders=1, -- top release adders
      Help=1, -- Guess what! :P
      AddReq=1, -- Add a request.
      ShowReqs=1, -- Show requests.
      DelReq=4, -- Delete requests. Note that everyone is allowed to delete their own requests.
    } -- You set the userlevels according to... you know what :P
    MaxItemAge=30 -- IN DAYS
    TopAddersCount=5 -- shows top-adders on command, this is the number how many it should show
    ShowOnEntry = 2 -- Show latest stuff on entry 1=PM, 2=mainchat, 0=no
    MaxNew = 20 -- Max stuff shown on newalbums/entry
    WhenAndWhatToShow={
      ["20:31"]="new",
      ["20:48"]="warez",
      ["20:49"]="new",
      ["20:50"]="all",
      ["23:44"]="new",
    }-- Timed release announcing. You can specify a category name, or "all" or "new"
    ForbiddenWords={ -- Releases and requests containing such words cannot be added.
    "rape",
    "incest",
    }
    SortStuffByName=1 -- Set to 1 to sort the releases within the category-based view alphabetically.


AllStuff,NewestStuff,Engine={},{},{}
botver="FreshStuff3 v 5.0 alpha2"
package.path="freshstuff/?.lua"
package.cpath="freshstuff/lib/?.dll"
do -- detect the host app
local Host={["frmHub"]="ptokax",["DC"]="bcdc",["VH"]="verli"}
local c
  for k,v in pairs(Host) do
    if _G[k] then require(v); c=true; break; end
  end
  assert(c,"FATAL: This script does not support your host application. :-(")
end
if package.loaded["ptokax"] then
  require "pxlfs"
  do
    for entry in lfs.dir( lfs.currentdir().."\\freshstuff\\components" ) do
      local filename,ext=entry:match("([^%.]+)%.(%w%w%w)")
      if ext == "lua" then
        require ("components."..filename)
      end
    end
  end
end
require "tables"
require "kernel"

Functions={}




bastya_elvtars

OMG, forgot to document this. For PtokaX you need to get the PXLuaFileSystem library from here and extract pxlfs.tds and pxlfs.dll into scripts/freshstuff/lib.
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk