| 1 | # bMotion - Global variable init |
|---|
| 2 | # |
|---|
| 3 | |
|---|
| 4 | ############################################################################### |
|---|
| 5 | # bMotion - an 'AI' TCL script for eggdrops |
|---|
| 6 | # Copyright (C) James Michael Seward 2000-2008 |
|---|
| 7 | # |
|---|
| 8 | # This program is free software; you can redistribute it and/or modify |
|---|
| 9 | # it under the terms of the GNU General Public License as published by |
|---|
| 10 | # the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | # (at your option) any later version. |
|---|
| 12 | # |
|---|
| 13 | # This program is distributed in the hope that it will be useful, but |
|---|
| 14 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 16 | # General Public License for more details. |
|---|
| 17 | # |
|---|
| 18 | # You should have received a copy of the GNU General Public License |
|---|
| 19 | # along with this program; if not, write to the Free Software |
|---|
| 20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 21 | ############################################################################### |
|---|
| 22 | |
|---|
| 23 | # Defaults |
|---|
| 24 | |
|---|
| 25 | # Mood stuff is in mood.tcl |
|---|
| 26 | |
|---|
| 27 | if {![info exists got]} { |
|---|
| 28 | set got(tissues,nick) "" |
|---|
| 29 | set got(tissues,channel) "" |
|---|
| 30 | set got(coffee,nick) "" |
|---|
| 31 | set got(coffee,channel) "" |
|---|
| 32 | set got(bodyPaint,nick) "" |
|---|
| 33 | set got(bodyPaint,channel) "" |
|---|
| 34 | set got(dildo,nick) "" |
|---|
| 35 | set got(dildo,count) 0 |
|---|
| 36 | set got(dildo,style) "" |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | if {![info exists bMotionInfo]} { |
|---|
| 40 | set bMotionInfo(pokemon) "pikachu" |
|---|
| 41 | set bMotionInfo(cloaked) 0 |
|---|
| 42 | set bMotionInfo(warp) 0 |
|---|
| 43 | set bMotionInfo(impulse) 0 |
|---|
| 44 | set bMotionInfo(brig) "" |
|---|
| 45 | set bMotionInfo(leet) 0 |
|---|
| 46 | set bMotionInfo(dutch) 0 |
|---|
| 47 | set bMotionInfo(leetChance) 3 |
|---|
| 48 | set bMotionInfo(silence) 0 |
|---|
| 49 | set bMotionInfo(away) 0 |
|---|
| 50 | set bMotionInfo(clothing) 5 |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | set bMotionCache(away) "" |
|---|
| 54 | set bMotionCache(lastGreeted) "" |
|---|
| 55 | set bMotionCache(lastHows) "" |
|---|
| 56 | set bMotionCache(lastDoneFor) "" |
|---|
| 57 | set bMotionCache(teamRocket) "" |
|---|
| 58 | set bMotionCache(lastLeft) "" |
|---|
| 59 | set bMotionCache(opme) "" |
|---|
| 60 | set bMotionCache(typos) 0 |
|---|
| 61 | set bMotionCache(typoFix) "" |
|---|
| 62 | set bMotionCache(remoteBot) "" |
|---|
| 63 | set bMotionCache(randomUser) "" |
|---|
| 64 | |
|---|
| 65 | set bMotion_typos [list] |
|---|
| 66 | set bMotion_typo_mutex "" |
|---|
| 67 | |
|---|
| 68 | bMotion_plugins_settings_set "system" "lastPlugin" "" "" "" |
|---|
| 69 | bMotion_plugins_settings_set "system" "last_simple" "" "" "" |
|---|
| 70 | |
|---|
| 71 | #this is set later |
|---|
| 72 | set botnicks "" |
|---|
| 73 | |
|---|
| 74 | set arrcachearr "" |
|---|
| 75 | set arrcachenick "" |
|---|
| 76 | set colenMings [expr srand([clock clicks])] |
|---|
| 77 | |
|---|
| 78 | set bMotionAdminFlag "n" |
|---|
| 79 | |
|---|
| 80 | #typing queue |
|---|
| 81 | set bMotionQueue [list] |
|---|
| 82 | set bMotionQueueTimer 0 |
|---|
| 83 | |
|---|
| 84 | set bMotionThisText "" |
|---|
| 85 | |
|---|
| 86 | #0 for off |
|---|
| 87 | set bMotionGlobal 1 |
|---|
| 88 | |
|---|
| 89 | set bMotionPluginHistory [list] |
|---|
| 90 | |
|---|
| 91 | set bMotionChannels [list] |
|---|
| 92 | |
|---|
| 93 | # 0 -> 1 -> 2 -> 0 |
|---|
| 94 | set BMOTION_SLEEP(AWAKE) 0 |
|---|
| 95 | set BMOTION_SLEEP(BEDTIME) 1 |
|---|
| 96 | set BMOTION_SLEEP(ASLEEP) 2 |
|---|
| 97 | set BMOTION_SLEEP(OVERSLEEPING) 3 |
|---|
| 98 | |
|---|
| 99 | # start off awake |
|---|
| 100 | set bMotionSettings(asleep) $BMOTION_SLEEP(AWAKE) |
|---|
| 101 | set bMotionTiredness 0 |
|---|
| 102 | |
|---|
| 103 | set bMotionDebug [list] |
|---|
| 104 | |
|---|