Console-News & NFOrce RSS Feed Bot
 

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

Console-News & NFOrce RSS Feed Bot

Started by st0ne-db, 06 October, 2005, 23:04:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

st0ne-db

--************************************************************************
--   CONSOLE-NEWS & NFOrce RSS FEED Bot     by: St0ne-db   v.1.0.1
--************************************************************************
--This script was pieced together using code from:
--
--Google.Bot.v.1.0.LUA5-ZD: ZD scripting team
--Web Reader 1.0 : by Mutor The Ugly
--also thanks to bluebear & bastya_elvtars (http://ptxwiki.psycho-chihuahua.net/doku.php/scriptinghelp/pxwsa)
--** I do not take credit for their work!! **
-- -St0ne-db
--
--
-- This script requires PxWSA.dll and PtokaX >= 3.3.21
-- PxWSA: http://www.thewildplace.dk/lua/wsa

*edit*
http://www.freetohost.co.uk/mike/Console-NFO+RSS+Feed+Bot.rar   -thx pothead :)

GrinSlaW

the link dont work :-(
.:: AcExtreme ::. | .:: AcPro ::.


GrinSlaW

.:: AcExtreme ::. | .:: AcPro ::.

Hades

Nice one - have it installed and runs great but it conflicts with hawk's terminator. Doesn't work when it's on.:((

GrinSlaW

hi
this is a realy nice BOT great work m8  :D

ihave a request thoug can you make so when you type in a command i comes in PM ? or a option so you can choose MAIN or PM

cheers
.:: AcExtreme ::. | .:: AcPro ::.

Bumbi

Great bot  :)  Is there anyway to add some more hosts like from //www.swenews.info ??

Bumbi

GrinSlaW

hi i have tried to mod the bot but i cant get it to work i have added SweCheck to it but i cant get any results in the hubb so if you guy's can see whats wrong in it

["scall"] = 
	function(user,data)
		if (Denial("scall",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scapp"] = 
	function(user,data)
		if (Denial("scapp",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=apps"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scdivx"] = 
	function(user,data)
		if (Denial("scdivx",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=divx"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scdvd"] = 
	function(user,data)
		if (Denial("scdvd",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=dvd-r"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scgame"] = 
	function(user,data)
		if (Denial("scgame",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=games"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scmp3"] = 
	function(user,data)
		if (Denial("scmp3",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=mp3"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scmvids"] = 
	function(user,data)
		if (Denial("scmvids",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=mvids"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scsvcd"] = 
	function(user,data)
		if (Denial("scsvcd",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=svcd"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["sctv"] = 
	function(user,data)
		if (Denial("sctv",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=tv"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scvcd"] = 
	function(user,data)
		if (Denial("scvcd",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=vcd"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,

	["scxxx"] = 
	function(user,data)
		if (Denial("scxxx",user) == 1) then return 1 end
		--Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/?s=xxx"
    xport=80
    xprot=0
    --END
    SendToNick(usr, "<"..sBot.."> *** Request Sent..  Please Wait")
   	OpenSck( xhost, xfile, xport, xprot )                                                                                            
    return 1;
	end,


whats happening is it that the bot says that the page coud not be found so if you can find out whats wrong i would be happy. adress to where the feeds is: http://www.swecheck.net/other.asp?huh=misc

cheers
.:: AcExtreme ::. | .:: AcPro ::.

bastya_elvtars

QuoteOriginally posted by Hades
Nice one - have it installed and runs great but it conflicts with hawk's terminator. Doesn't work when it's on.:((

Tell me a DC tool that does NOT conflict with it. :-)
Everything could have been anything else and it would have just as much meaning.

st0ne-db

QuoteOriginally posted by GrinSlaW
hi i have tried to mod the bot but i cant get it to work i have added SweCheck to it but i cant get any results in the hubb so if you guy's can see whats wrong in it

  --Variables:
    xhost="www.swecheck.net"
    xfile="http://rss.swecheck.net/"



the problem is with your variables.
it must be setup like this.....

this is a rss feed for NFOrce.nl
http://www.nforce.nl/rss/rss_11.xml

click on it..... ur web browser should open up a xml file.
all feeds must be in this format... or similar.
to correctly set the variables for this feed, follow these rules:

drop the //http://
and split the rest in to host and file,

xhost = "www.nforce.nl"
xfile = "/rss/rss_11.xml"

then it should work for u.

btw... i have updated the script to make it easier to add and remove feeds... look for it soon :)

Jo4kim

This is a very good script. Liked the nforce part very much. But since Console-News were down, I didn't see that part. Like someone else said earlier, it would be damn nice to just add swecheck.net's rss feeds. And also use swenews.info/bot.php

Thanks, in advance, Joakim.

st0ne-db

#11
--************************************************************************
--   CONSOLE-NEWS & NFOrce RSS FEED Bot     by: St0ne-db   v.1.0.2
--************************************************************************
--This script was pieced together using code from:
--
--Google.Bot.v.1.0.LUA5-ZD: ZD scripting team
--Web Reader 1.0 : by Mutor The Ugly
--also thanks to bluebear & bastya_elvtars (http://ptxwiki.psycho-chihuahua.net/doku.php/scriptinghelp/pxwsa)
--CheckSize and DoTabs from nErBoS Release bot
--Serialize from Entry Bot v1.1g
--** I do not take credit for their work!! **
-- -St0ne-db
--
-- This script requires PxWSA.dll and PtokaX >= 3.3.21

-- Change Log: v1.0.2
-- Added send results in Main Chat or PM
-- Added global user access
-- Added RSS Dat file
-- Added rssadd, rssdel, rssshow Commands (Seperate Admin Access)
-- Added Feed Command Spy for OP's
-- Added support for Yahoo Weather RSS Feeds
--------------------------------------------------------------------------------
-- Yahoo Weather RSS Support- http://xml.weather.yahoo.com/forecastrss?p=XXXXX&u=Z
-- two parameters:  X and Z
--X = 'p' for the location identifier. This can either be a US Zip Code or the location ID as displayed on Yahoo Weather.
--Z = 'u' for units preference. (F)ahrenheit is the default. Use 'C' for celcius.
--------------------------------------------------------------------------------
http://%20www.freetohost.co.uk/mike/Console-NFO_RSS-1.0.2-Fixed.rar


ok here is how to configure and use the script:
 
edit only these variables;
 
-- VARIABLES -------------------------------------------------------------
sBot = "Slo_B";          -- Bot Name
sPrefix = "!";           -- Command Prefix
sResults = "1"           -- Show Results in; 0=Main Chat, 1=PM
sFile = "rssfeed.tbl"    -- RSS Feed Dat File
sFolder = "rssfeed"      -- RSS Feed Folder
xport=80                 -- Port
xprot=0                  -- Protocol  (0=TCP, 1=UDP)
feedspy = "1"            -- Send user feed usage to op's (0=Off, 1=On)
----- END ----------------------------------------------------------------
 
CmdOpt = {
 ["access"] = { --User Access Levels
  [0] = 1,     -- master
  [1] = 1,     -- op
  [2] = 1,     -- vip
  [3] = 1,     -- reg
  [-1] = 0,    -- unreg 
    };
    
  ["admin"] = { --User Access Levels    1= can access    0=no access
  [0] = 1,     -- master
  [1] = 1,     -- op
  [2] = 0,     -- vip
  [3] = 0,     -- reg
  [-1] = 0,    -- unreg 
    };  
};

["access"] = access for launching feeds
["admin"] = access for adding and deleting of feeds
 
here is how to use the commands
 
!rssshow      - show avaible feeds
!rssdel - delete feed, use !rssshow to find feed #
!rssadd - add a feed
    trigger = what ever command u want to launch the feed
 here is how to find the host and file:
    http://xml.weather.yahoo.com/forecastrss?p=60187        <--------- Yahoo RSS feed (for me, Chicago)
    drop the //http://  ,and seperate the remaing parts into host and file
    host = xml.weather.yahoo.com
    file = /forecastrss?p=60187
ex.
    !rssadd myweather xml.weather.yahoo.com /forecastrss?p=60187 My Local Weather Forecast


**** Edit ****
Fixed a bug... script now works with Xbox-Scene Feeds

GrinSlaW

nice update tnx  :D

but the link is dead  :(


cheers
.:: AcExtreme ::. | .:: AcPro ::.

st0ne-db

QuoteOriginally posted by GrinSlaW
nice update tnx  :D

but the link is dead  :(


cheers

just updated it m8 :)

GrinSlaW

hehe ok  :D

i'll try to dl later then must do somthing first  8)

cheers
.:: AcExtreme ::. | .:: AcPro ::.

GrinSlaW

no error so far nice work m8  :D

but i cant this to work that i hade a problem with before

http://rss.swecheck.net/?s=apps it is not the same as nforce how should i split this or make it work i have tried this :

xhost = "rss.swecheck.net"
xfile = "/?s=apps"

but i just get this in the bot:

 HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Sun, 09 Oct 2005 23:40:09 GMT
Connection: close
Content-Length: 34
 
-

Bad Request (Invalid URL)



or should i use:

xhost = "www.swecheck.net"
xfile = "/rss.swecheck.net/?s=apps"

ihave no clue  ?(

pleace help me  :(

cheers
.:: AcExtreme ::. | .:: AcPro ::.

st0ne-db

QuoteOriginally posted by GrinSlaW
i cant this to work that i hade a problem with before

http://rss.swecheck.net/?s=apps it is not the same as nforce how should i split this or make it work i have tried this :

xhost = "rss.swecheck.net"
xfile = "/?s=apps"

but i just get this in the bot:

 HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Sun, 09 Oct 2005 23:40:09 GMT
Connection: close
Content-Length: 34
 
-

Bad Request (Invalid URL)



ihave no clue  ?(

pleace help me  :(

cheers

ok the problem is that you arent requesting a file.
from the feeds i have tested... it would seem that u have to have a feed that is pointing to a file.
sorry  :(

GrinSlaW

ok so it is not possible to get swechecks feed in the bot.

damn well then tnx for your help m8  8)

great bot  :]

cheers
.:: AcExtreme ::. | .:: AcPro ::.

st0ne-db

--************************************************************************
-- CONSOLE-NEWS & NFOrce RSS FEED Bot by: St0ne-db v.1.0.3
--************************************************************************
http://www.freetohost.co.uk/mike/Console-NFO_RSS-1.0.3.rar

Now supports: rss.swecheck.net

:)

GrinSlaW

wooohoooo my man :D tnx alot for the good news :D damn this day is safe now :)

cheers
.:: AcExtreme ::. | .:: AcPro ::.

GrinSlaW

#20
i have tried the bot now and it works great :)

the weather works to,  nice function :)

good work m8  :D

cheers
.:: AcExtreme ::. | .:: AcPro ::.

TTB

st0ne-db,

G00d job! I do have also a request... What about:
- nldvdr.info
- imdb

Maybe you can make that also in this nice releasebot.
TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

st0ne-db

Same bot... just updated support for feeds. Keep your old rssfeed.tbl file or replace it. new feeds are included.

Total included feeds = 58

--************************************************************************
--   CONSOLE-NEWS & NFOrce RSS FEED Bot     by: St0ne-db   v.1.0.4
--************************************************************************
--This script was pieced together using code from:
--------------------------------------------------------------------------
--Google.Bot.v.1.0.LUA5-ZD: ZD scripting team 
--Web Reader 1.0 : by Mutor The Ugly
--also thanks to bluebear & bastya_elvtars ([URL]http://ptxwiki.psycho-chihuahua.net/doku.php/scriptinghelp/pxwsa[/URL]) 
--Serialize from Entry Bot v1.1g 
--** I do not take credit for their work!! **
-- -St0ne-db
--------------------------------------------------------------------------
-- *** This script requires PxWSA.dll and PtokaX >= 3.3.21 ***
-------------------------------- 
-- Change Log: v1.0.4
--------------------------------
-- Added Support for 'sports.espn.go.com' RSS Feeds
-- Added Support for NewzBinz RSS Feeds 'www.jonsthoughtsoneverything.com'
-- Tested Support for 'www.gamespot.com' RSS Feeds
-- Tested Support for 'www.file-portal.net' RSS Feeds
-- Tested Support for 'www.gameslave.co.uk' RSS Feeds

Get it here:      http://st0ne-db.5u.com/

st0ne-db

QuoteOriginally posted by TTB

I do have also a request... What about:
- nldvdr.info
- imdb


post me the links to the rss feeds u want added.... i'll check them out.

TTB

Hi,

I searched for it, but can't find a good feed for nldvdr.info  :(

IMDB is more like the googlebot. There is one in LUA4

The team that created the googlebot maybe also like to create and implant it to the google bot (don't know).

Thanx.
TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

SMF spam blocked by CleanTalk