| View previous topic :: View next topic |
| Author |
Message |
skyway Voice
Joined: 02 Jul 2015 Posts: 2
|
Posted: Tue Sep 29, 2015 2:54 am Post subject: |
|
|
out where? link ? |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Tue Sep 29, 2015 3:05 am Post subject: |
|
|
| skyway wrote: | out where? link ? |
Please see the first post of this topic for the latest version of the script. |
|
| Back to top |
|
 |
Henkie2 Voice
Joined: 25 Sep 2015 Posts: 16
|
Posted: Tue Sep 29, 2015 6:10 am Post subject: |
|
|
| x0x are you also going to add some more triggers now it's working for old and new versions of tcl? like !today and auto announce 10 mins show? Thanks |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Tue Sep 29, 2015 6:14 am Post subject: |
|
|
| Henkie2 wrote: | | x0x are you also going to add some more triggers now it's working for old and new versions of tcl? like !today and auto announce 10 mins show? Thanks |
Maybe in a future release, yes. |
|
| Back to top |
|
 |
Skekso Voice
Joined: 02 Oct 2015 Posts: 1
|
Posted: Fri Oct 02, 2015 1:33 pm Post subject: |
|
|
Getting some funky output for country on web series. TCL 8.6 and eggdrop 1.6.21
<bot> Show: Bloodline " Network: Netflix " Genre: Drama Family
<bot> Premiered: 2015-03-20 (name {United States} code US timezone America/New_York) " Status: Running " URL: http://www.tvmaze.com/shows/1372/bloodline
<bot> Last: S01E13 aired 2015-03-20 |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Oct 03, 2015 5:10 am Post subject: |
|
|
| Skekso wrote: | Getting some funky output for country on web series. TCL 8.6 and eggdrop 1.6.21
<bot> Show: Bloodline " Network: Netflix " Genre: Drama Family
<bot> Premiered: 2015-03-20 (name {United States} code US timezone America/New_York) " Status: Running " URL: http://www.tvmaze.com/shows/1372/bloodline
<bot> Last: S01E13 aired 2015-03-20 |
Thanks! Just released a new version of the script. |
|
| Back to top |
|
 |
zoggy Voice
Joined: 24 Jun 2013 Posts: 4
|
Posted: Sat Oct 03, 2015 5:05 pm Post subject: |
|
|
eggdrop-1.6.21 w/tcl 8.6.1
using latest tclmaze v1.25, I also see " being used instead of •.
| Code: |
[04:01pm] <Bot> Show: Heroes Reborn " Network: NBC " Genre: Drama Action Science-Fiction
[04:01pm] <Bot> Premiered: 2015-09-24 " Status: Running " URL: http://www.tvmaze.com/shows/1415/heroes-reborn
[04:01pm] <Bot> Previous: S01E03 aired 2015-10-01 " Next: S01E04 airs 2015-10-08 at 08:00 PM EDT
|
also missing shows return 404?
| Code: |
[04:06pm] <user> !last archer (2009)
[04:06pm] <Bot> user, there was an http error: ( 404 ) ok
|
debug info:
| Code: |
$ echo "puts [info tclversion]" | tclsh
8.6
$ echo "puts [info patchlevel]" | tclsh
8.6.1
$ echo "puts [package require json]" | tclsh
1.1.2
|
| Code: |
.tcl encoding names
Tcl: cp860 cp861 cp862 cp863 cp864 tis-620 cp865 cp866 gb2312-raw gb12345 cp950 cp949 cp869 dingbats ksc5601 macCentEuro cp874 macUkraine gb2312 jis0201 euc-cn euc-jp iso8859-10 macThai jis0208 iso2022-jp macIceland iso2022 iso8859-13 iso8859-14 jis0212 cp737 iso8859-15 iso8859-16 big5 euc-kr macRomania macTurkish gb1988 iso2022-kr macGreek cp437 ascii macRoman iso8859-1 iso8859-2 iso8859-3 koi8-r macCroatian iso8859-4 ebcdic iso8859-5 cp1250 macCyrillic iso8859-6 cp1251 macDingbats cp1252
Tcl: koi8-u iso8859-7 iso8859-8 cp1253 cp1254 iso8859-9 cp1255 cp850 cp1256 cp932 identity cp852 cp1257 cp1258 macJapan shiftjis utf-8 cp936 cp855 cp775 symbol unicode cp857
|
|
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Oct 03, 2015 6:38 pm Post subject: |
|
|
Hmm?
!tv heroes reborn
Show: Heroes Reborn • Network: NBC • Genre: Drama Action Science-Fiction
Premiered: 2015-09-24 • Status: Running • URL: http://www.tvmaze.com/shows/1415/heroes-reborn
Previous: S01E03 aired 2015-10-01 • Next: S01E04 airs 2015-10-08 at 08:00 PM EDT
!l archer
Show: Archer • Last episode: S06E13 "Drastic Voyage: Part Ii" aired 2015-04-02 |
|
| Back to top |
|
 |
philodox Voice
Joined: 24 Oct 2015 Posts: 1
|
Posted: Sat Oct 24, 2015 12:21 pm Post subject: |
|
|
first of all thanks for a great script.
is it possible to request support for themes for use with other sitebot script like ie. pzs-ng and for easy change of bot output to channel? |
|
| Back to top |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Sat Oct 24, 2015 3:50 pm Post subject: |
|
|
| philodox wrote: | first of all thanks for a great script.
is it possible to request support for themes for use with other sitebot script like ie. pzs-ng and for easy change of bot output to channel? |
Thank you for your compliments
There are a couple of features I'd like to add and one of them includes an easy way to change the channel output of the script. I need to work around some issues first tho. If only I had the time....
For now, you'll have to be creative and modify the script yourself. I'm back home in a week and have some time again to work on it myself. |
|
| Back to top |
|
 |
Froggaard Voice
Joined: 25 Sep 2015 Posts: 13
|
Posted: Tue Nov 03, 2015 12:13 am Post subject: |
|
|
It is possible to make airs in XX days
Eg.
[05:09:37] <+TV> Show: The Blacklist :: Next episode: S03E06 - Sir Crispin Crandall airs 2015-11-05 (1 day - 22 Hours) :: http://www.tvmaze.com/shows/69/the-blacklist |
|
| Back to top |
|
 |
Henkie2 Voice
Joined: 25 Sep 2015 Posts: 16
|
Posted: Sun Nov 08, 2015 9:05 am Post subject: |
|
|
Still hoping for some extra triggers sooner or later
Like !today / !tomorrow and auto 10mins announce and airs in days/hours like Froggaard said. PEACE |
|
| Back to top |
|
 |
ballz Voice
Joined: 14 Nov 2015 Posts: 2
|
Posted: Sat Nov 14, 2015 8:17 pm Post subject: |
|
|
I use this script and I made a solution for myself to display the Today schedule. I run a cron job once per day to run my today script (php). This creates me a local text copy of the daily schedule. I then use this to echo to my channel. It also only uses 1 API request per day rather than 1 every trigger.
Your welcome to try my solution for yourself until things are added to this script.
| Code: |
<?php
$file = fopen("tv.txt", "w") or die("Unable to open file!");
$today = date("Y-m-d");
$mychans = array("AMC","The CW", "FOX","NBC","ABC","FX","SyFy");
$url = "http://api.tvmaze.com/schedule?date=" . $today;
$json = file_get_contents($url);
$data = json_decode($json,true);
$last = count($data) - 1; // might need later
$title = "\002\00304Full Schedule For \00308" . $today . "\r\n";
$chanlist = "Channels Listed - " . join(" ",$mychans) . "\r\n";
fwrite ($file, $title);
fwrite ($file, $chanlist);
foreach ($data as $kkey ) {
$season = $kkey['season'];
$ep = $kkey['number'];
$showname = $kkey['show']['name'];
$airs = $kkey['airtime'];
$episodename = $kkey['name'];
$channel = $kkey['show']['network']['name'];
if (in_array($channel, $mychans)){
$myline = $airs . " - " . $channel . " - " . $showname . " - Season " . $season . " - Episode " . $ep . "\r\n";
fwrite($file, $myline);
}
}
fclose($file);
?>
|
This runs once daily at approx 6am UK time. Then on my eggdrop I use this small script.
| Code: |
bind pub - "!today" today
proc today {chan args} {
set fp [open "tv.txt" r]
set file_data [read $fp]
close $fp
set data [split $file_data "\n"]
foreach line $data {
putserv "PRIVMSG #channel : $line"
}
}
|
its a bit of a dirty fix, but it works fine.
Remember to use full paths to your txt file, i removed mine from the src.
I should also add I am a self taught coder by reading other scripts and google, I have no doubt this can be simplified, it works so I didnt bother looking at cutting down the size.
Have fun & Thanks to the author of this TvMaze script, Its great.  |
|
| Back to top |
|
 |
Votex Voice
Joined: 21 Jun 2014 Posts: 23
|
Posted: Mon Nov 16, 2015 11:22 am Post subject: |
|
|
Hello there
could someone please guide me to how install "Json" on windows so i can make this script work on my bot on windows OS
I tried and tried but still a dead end |
|
| Back to top |
|
 |
ballz Voice
Joined: 14 Nov 2015 Posts: 2
|
Posted: Tue Nov 17, 2015 7:32 pm Post subject: |
|
|
| Im a little out of touch, isnt Windrop run through Cygwin? If so I believe you need to update your cygwin tcl files. You might find you need to install cygwin (from the cygwin homepage) and do some compiling. If i get time over the next few days I'll grab a copy and try on a VM. |
|
| Back to top |
|
 |
|