Timed info script
 

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

Timed info script

Started by QuikThinker, 18 November, 2004, 18:25:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

QuikThinker

Hey guys, I'm after a timed message script with a difference. I use one already that basically shows info every hour or so but I want one that will show DIFFERENT info depending on the time of day and the actual day.

So basically 4 example on Monday at 19:00 it will say blah blah blah every 15 mins for an hour then it will change at 20:00 & post different info 4 the next 15 mins. I wanna be able 2 edit the script so I can post radio stream info displaying who's show is on radio at that particular time.

It's a big script needed I think. Good luck.
Thanx in advance,
Quik.

bastya_elvtars

QuoteOriginally posted by QuikThinker
Hey guys, I'm after a timed message script with a difference. I use one already that basically shows info every hour or so but I want one that will show DIFFERENT info depending on the time of day and the actual day.

So basically 4 example on Monday at 19:00 it will say blah blah blah every 15 mins for an hour then it will change at 20:00 & post different info 4 the next 15 mins. I wanna be able 2 edit the script so I can post radio stream info displaying who's show is on radio at that particular time.

It's a big script needed I think. Good luck.
Thanx in advance,
Quik.


not that hard 2 solve, i just wanna know what it should do exactly. If there should be a pretybed text in the script, or txtfiles, it can be solved.
Everything could have been anything else and it would have just as much meaning.

QuikThinker

For instance the basic template would be suttin like:

********************************
         LIVE STREAMING RADIO
---------------------------------------------------
LIVE ON "Stream Name" NOW: "name of DJ/crew"
---------------------------------------------------
Time of set: "e.g. 19:00 - 20:00"
*********************************

Suttin LIKE that would be the basic template then I wanna be able 2 manually config it so dependin on the time/date of the host PC it will display the relevant info.

Any good?

QuikThinker

Any help Bastya lol?

QuikThinker

Can no-one help me then?  ;(

enema

I could create a script that shows txt in certain time! If you know in whitch time, whitch text should be posted exactlly, then tell me... for example Time1 =text1, Time2 = text2 ect... Do you need something like that?

bastya_elvtars

QuoteOriginally posted by QuikThinker
Any help Bastya lol?

seems you need shoutstats from mutor. i thought hub-ad r something.
Everything could have been anything else and it would have just as much meaning.

QuikThinker

QuoteOriginally posted by enema
I could create a script that shows txt in certain time! If you know in whitch time, whitch text should be posted exactlly, then tell me... for example Time1 =text1, Time2 = text2 ect... Do you need something like that?

Exactly like that! But it'd need 2 be date and time. So on Monday at 19:00 it would be different 2 Tuesday etc. And I need it so it's editable by me as the shows change etc..

enema

I've just finished.. tested it a little bit, works fine! If thereis any bug or modification needed, just give me a shout!
--- enema timed info bot, thanks to plop
--- Date - 22.10.2004
--- time format - ["x:y:z"] x = days, y = hours, z = minutes
--------------------------------------------------------
--- Sunday = 0  -*- Wednesday = 3 -*- Saturday = 6
--- Monday = 1  -*- Thuresday = 4 -*-
--- Tuesday = 2 -*- Friday = 5    -*-
--------------------------------------------------------


iMin = 1000*60 
tTime = {
	--["timestring"] = "show this string"
	["1:21:10"] = "Your_TEXT_HERE!!!",
	["1:21:23"] = "Your_TEXT_goes_HERE!!!",
	["6:9:00"] = "Your_TEXT_HERE!!!"
}

--------------------------------------------------------
bot = "whatever"

function Main() 
	current = date("%w:%H:%M")
	if tTime[current] then
		SendToAll(bot, tTime[current] )
	end
	
	SetTimer(iMin) 
	StartTimer() 
end 
--------------------------------------------------------
function OnTimer()
	current = date("%w:%H:%M")
	if tTime[current] then
		SendToAll(bot, tTime[current] )
	end

end

QuikThinker

I'm not sure if this is exactly wat I want man. lol I'm tryin hard 2 explain. I'll try breakin it down.

1) e.g. the clock strikes 18:00 on Monday nite. The script kicks in and displays
*******************************
LIVE NOW ON http://wateva.com
*****************************
DJ EXAMPLE PLAYIN HIPHOP
*******************************
18:00 TIL 19:00
****************************

2) It will then display that message every 15 mins until his set is finished i.e. at 19:00

3) At 19:00 it will then change the display message to wateva DJ is on next and on wat stream address

4) If no-one DJ is playin at that time it will jus stop until the script reads that it's time 4 another DJ whether it's later that day or the next.

5) I want it 2 read from a txt file so I can edit the DJs, music genre, timeslot, stream addy and any other relevant info 4 each individual timeslot.

I hope this is of more help? lol but probably quite a bit harder?

Thanx in advance,
Quik.

SMF spam blocked by CleanTalk