# Joker (c) 1999 by Amadeus` The Elite Scripting Team efNET #scripting
set jkrver "Joker v0.8 (c) 1999 by Amadeus`"
# inspired by joke.tcl - Copyright (c) 1997 by t00NIE
# 
#
# Features:
#   `Built-in yomomma and redneck with attack mode
#   `Can load and remove any one joke-per-line file, script automatically
#    builds pub and dcc binds, as well as pub and dcc procs for each joke type.
#   `reacts to another channel op using 'redneck' or 'yomomma' in a channel
#    message
#
# Joke Files format:
#   each file should contain one line per joke. You may use highlighting such
#   as bold, underline etc. I have included a number of jokefiles, already
#   loaded in $joker_loader. You may remove any yu find distasteful or unfunny,
#   using the dcc .remjoke <trigger> command. You must restart the bot to remove
#   binds.
#
#   Default Pub commands:
#   All pub commands are accessible by bot masters and channel OPS.
#
#   !joke - trigger selects and displays a random joke from all loaded jokelists.
#   !jokehelp - lists all joke triggers
#   !jokecount - msgs nick with count for each joke type and total
#
#   !yomomma [[<nick>] [<channel>]]
#   !redneck [[<nick>] [<channel>]]
#       no args         - joke shown in channel
#       nick            - joke addressed to nick in channel
#                       - if nick not on common channel, insult is msged
#       nick channel    - if nick and bot on same channel, 
#                         joke is addressed to nick in channel
#                         otherwise bot goes into attack mode:
#                         will change nick, join channel,
#                         insult the nick, part channel and revert to 
#                         it's original nick
#   
#   !<addedtrigger>     - joke is shown in current channel
#
#
#   Owner (+n) DCC commands:
#   .addjoke <trigger> <path>       - install a jokelist file
#                                   creates binds and procs in $joker_loader
#                                  eg : .addjoke blond text/blond.txt
#                                   creates a pub bind for !blond, a dcc bind
#                                   for .blond, and the related procs
#   .remjoke <trigger>              - remove a jokelist
#                                   deletes binds and procs in $joker_loader
#                                  eg : .remjoke blond
#
#
#   Master (+m) DCC commands:
#
#   .jokehelp   - shows channel triggers and dcc commands help
#   .jokecount  - shows count for each joke type and total
#   .joke <channel|nick>            - joke is msged to channel or nick
#   .<addedtrigger> <channel|nick>  - joke is msged to channel or nick
#   .yomomma [[<nick|channel>] [<channel>]]
#   .redneck [[<nick|channel>] [<channel>]]
#
#
# Known bugs:
# In attack mode:
# - sometimes does not say anything in attack channel
# - sometimes changes back to original nick before leaving attack channel
# - if cloak nick is in use, will use alt nick (noted in v1.3.22)
#   in that case, it will not say anything in attack channel, because
#   the temp JOIN  bind is not triggered

