Page 1 of 1
[PERL] Chii module programming - DISCUSSION
Posted: Sat Jul 02, 2005 9:21 pm
by exp
Thread for all discussion about Chii module programming.
Posted: Sun Jul 03, 2005 7:35 pm
by bbaab
Thanks for the files, I imported it to
http://cvs.baka-sama.de/cvsweb.cgi/chii-bot/ - everyone who wants to help & needs write access to the repository, drop me a line.
The following files seems to be missing. They might be unimportant; I just grepped for require/use lines:
Code: Select all
adb_db.pm
adb_file_symbols.pm
adb_misc.pm
adb_voten.pm
adbs_all_mini.pm
anfo.pm
Posted: Mon Jul 04, 2005 11:09 pm
by pelican
I've been renovating Chii's randomanime function to a more decent state and found myself presented with a choice... however, it's not really my choice, so I need a decision or two here:
"!randomanime watched", "unwatched" and "all" currently return a random episode (list entry actually) and information on the anime it's attached to. This effectively assigns probabilities to anime based on how many files you have for that anime in your list (which meet the condition given), a behaviour that I felt was clearly wrong. I've changed the selection code to be a good deal simpler (hopefully a little faster too) and assign equal probabilities to anime, but my method leaves some choices regarding the episode selection:
- Should "!randomanime all":
- show no particular episode for the chosen anime
- (my preference) show a random episode from your list for the chosen anime
- show the first episode for the chosen anime
- Should "!randomanime watched":
- show no particular episode for the chosen anime
- show a random qualifying episode from your list for the chosen anime
- show the first episode for the chosen anime
- (my preference... probably) show the last qualifying (last (numerically) watched) episode from your list for the chosen anime
- Should "!randomanime unwatched":
- show no particular episode for the chosen anime
- show a random qualifying episode from your list for the chosen anime
- show the first episode for the chosen anime
- (my strong preference) show the first qualifying episode from your list for the chosen anime (next episode to watch)
Although I haven't got code for all of these, I'm near enough that implementation isn't an issue for any combination of choices from that list or probably of any other sensible alternatives. There shouldn't be any significant difference in performance between any of these options so that isn't an issue either.
Posted: Mon Jul 04, 2005 11:50 pm
by Rar
I'm of the
Ronseal frame of mind myself, !random
anime should return just anime, not episodes. So, 1a, 2a, and 3a though 3d wouldn't hurt.
Rar
Posted: Tue Jul 05, 2005 4:36 am
by Andemon
I don't see much point in '!randomanime' returning episodes, except for unwatched. My personal preference: 1 a, 2 a, 3 d.
Posted: Sun Aug 21, 2005 4:59 am
by exp
new SDK version 0.02 out, includes adb_voten and adbs_all_mini.
BYe!
EXP
Posted: Sat Sep 10, 2005 6:52 am
by exp
SDK 0.03 out, includes changes to adb_cmd_vote and adb_cmd_mylist.
adb_irc_tools.pm and adbs_all_mini.pm were slightly modified.
BYe!
EXP