This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

useDIZ v1.10 released. ideas for improvement welcome.

Support & discussion of released scripts, and announcements of new releases.
Post Reply
d
dmg
Voice
Posts: 5
Joined: Mon Apr 20, 2009 8:21 pm

useDIZ v1.10 released. ideas for improvement welcome.

Post by dmg »

New version of useDIZ out (and first version on egghelp.org).

Code: Select all

#      _ _____ .___ __ _______ __ ______ _____ .___ __ ____ _ _______ _ _ 
#          ____|   \ _/   _   \ _/  __  \ _____|   \ _/___/__/   _   \_ _ 
#      _ _/    \    \\_   |____\\_  :/   \\_   \    \\_     /____|   _/// 
#      \\\_    /     |______    |   /____//   __\   |       |   ______|   
#        _    /|     _    :/    _         _   \:    _       _   \:    _ ®d
#      _ /    \:     \_   /     \_        \_   \    \_      \_   \    \ _ 
#      \\\      _____//_________//________//________//______//__      /// 
#      - -\____/------------------------------------------------\____/- - 
#
#     -- useDIZ v1.10 by dMG/t!s 20090426 - asciiscene[-AT-]gmail.com --
#
# What is it?
# -----------
#
# useDIZ is a multifunctional irc channel script for eggdrop. It does the
# following things:
#
# - Greets users joining irc channel through a notice
# - Announces new uploads to irc channel
# - Dupechecks uploads against a database and removes duplicate uploads
#   (works for all filetypes)
# - Attaches a textfile with advertizement, upload date and time to uploaded
#   textfiles. If the advertizement file is missing, useDIZ will add the
#   script- and author names in it's place
# - Automatically creates, populates and sorts a database if it doesn't
#   exist under the (user configurable) path
# - Allows users that are registered and have set a password for the bot to
#   use !get command to download files from the filesystem without having to
#   log in. Safety measures have been made to assure that no file outside of
#   the $rootdir can be downloaded
# - Extracts and displays the file_id.diz of a textfile. useDIZ finds the
#   path recursively under the $rootdir and lets the user know if the file
#   is lacking a file_id.diz or is missing. If the diz command is used from
#   within the filesystem, the current path of the user will be used instead
# - Has a built in search function to recursively find the path of a file
#   under the $rootdir. Good for situations when only the path of a known
#   filename is needed for fast and easy download, possibly using !get
# - Has a built in help function that accepts arguments for different sections
#   of the easilly editable external help file. Open help.txt for syntax
# - Shows filesystem statistics when triggered by !stats command
#
# useDIZ was created by consolidating the following scripts that i have
# previously written: showDIZ, getDIZ and putDIZ together with some
# other ideas.
#
# This script was written for #ascii on ircNET.
#
# Example output:
# ---------------
#
# <@dMG> !diz lp!-ssfm.txt
# <@hosee2> -=( showing file_id.diz of lp!-ssfm.txt )=-
# <@hosee2>                                  _.____   
# <@hosee2>  L ô W P R ô F i L ë.____ _       ¡   /   
# <@hosee2>    ............._,-' `-......... _!/// __ 
# <@hosee2> __::::::___ _  /      ) \_     :(....)   |
# <@hosee2>   ::::::      ( ______\_ (     ::::::::  |
# <@hosee2> _ ......_      \(     \`   lP! .:·:::·   |
# <@hosee2>    .    /______ )\\ !  )_(      · ·      |
# <@hosee2>   /    /   _   \ _`¬.-'__ SOULSURVIVORS  |
# <@hosee2>  /    /_  /    ///(__//_(_   PART TWO    |
# <@hosee2> / ©Mt  / /    / (     )/ / LOWPROSOUL FM |
# <@hosee2> \_____/ _____/   )     \ ) BEATS & SKITS |
# <@hosee2> __ /____\  _____/       )___________ ____|
# <@hosee2>  /_________\                       //__ _ 
# <@hosee2>
# <@hosee2> file size of lp!-ssfm.txt is 81511 bytes.
# <@hosee2> found under path /_archive/l/lp!-ssfm.txt.
# <@hosee2> --==(\/)- useDIZ v1.03 by dMG/t!s -(\/)==--
#
# useDIZ has been tested using eggdrop v1.6.19.
If you have any questions about this or ideas on how i could improve the script, you're most welcome to post in this thread. :)

Have in mind that i'm no pro tcl coder, this is merely a project for me to learn tcl.

The script can be downloaded here:
http://www.egghelp.org/cgi-bin/tcl_arch ... ad&id=1602

P.S.
If you're interested in the ascii art used in the header, i've also converted some fixed width fonts from the Amiga for pc which you can find here:
http://ts.asciiscene.org/htm/t!s-af.htm for a more pleasurable way to watch this art form.
D.S.

Edited:
Removed url-tags around the asciiscene-url, as this contains an exclamation mark (prevents phpbb from rendering the post correctly).

/NML_375
[/size]
Post Reply