source: tags/start/bMotion.tcl @ 2

Revision 2, 2.6 KB checked in by jamesoff, 9 years ago (diff)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#bMotion core
2#
3# $Id$
4#
5
6#
7# #5270 +(28)- [X]
8#
9# <Procyan> is there like 1 person on earth that knows tcl/tk and is writing all of the apps?
10# <unSlider> procyan: no, there are a bunch of people who dont know tcl/tk but are writing apps for it anyway
11#
12
13set bMotionRoot "scripts/bmotion"
14set bMotionModules "$bMotionRoot/modules"
15set bMotionPlugins "$bMotionRoot/plugins"
16
17
18if {![info exists bMotion_testing]} {
19  putloglev d * "bMotion: bMotion_testing is not defined, setting to 0."
20  set bMotion_testing 0
21}
22
23if {$bMotion_testing == 1} {
24  putlog "bMotion: INFO: Code loading in testing mode"
25} else {
26  putloglev 1 * "bMotion: INFO: Code loading in running mode"
27}
28
29proc bMotion_putloglev { level star text } {
30  global bMotion_testing
31  if {$bMotion_testing == 0} {
32    putloglev $level $star $text
33  }
34}
35
36# init default variables
37if {$bMotion_testing == 1} {
38  putlog "... loading variables"
39}
40source "$bMotionModules/variables.tcl"
41
42# load abstracts file (formerly randoms)
43if {$bMotion_testing == 1} {
44  putlog "... loading abstracts"
45}
46source "$bMotionModules/abstracts.tcl"
47
48# load settings
49if {$bMotion_testing == 1} {
50  putlog "... loading settings"
51}
52source "$bMotionModules/settings.tcl"
53
54#load system functions
55if {$bMotion_testing == 1} {
56  putlog "... loading system"
57}
58source "$bMotionModules/system.tcl"
59
60# load output functions
61if {$bMotion_testing == 1} {
62  putlog "... loading output"
63}
64source "$bMotionModules/output.tcl"
65
66# load mood functions
67if {$bMotion_testing == 1} {
68  putlog "... loading mood"
69}
70source "$bMotionModules/mood.tcl"
71
72# load event functions
73if {$bMotion_testing == 1} {
74  putlog "... loading events"
75}
76source "$bMotionModules/events.tcl"
77
78if {$bMotion_testing == 1} {
79  putlog "... loading events support"
80}
81source "$bMotionModules/events_support.tcl"
82
83# load interbot bits
84if {$bMotion_testing == 1} {
85  putlog "... loading interbot"
86}
87source "$bMotionModules/interbot.tcl"
88
89# load friendship code
90if {$bMotion_testing == 1} {
91  putlog "... loading friendship"
92}
93source "$bMotionModules/friendship.tcl"
94
95# load plugins
96if {$bMotion_testing == 1} {
97  putlog "... loading plugins"
98}
99source "$bMotionModules/plugins.tcl"
100
101if {$bMotion_testing == 1} {
102  putlog "... loading plugin settings"
103}
104source "$bMotionModules/plugins_settings.tcl"
105
106# load anti-flood code
107if {$bMotion_testing == 1} {
108  putlog "... loading flood"
109}
110source "$bMotionModules/flood.tcl"
111
112# load other bits
113if {$bMotion_testing == 1} {
114  putlog "... loading leet"
115}
116source "$bMotionModules/leet.tcl"
117
118# Ignition!
119bMotion_startTimers
120if {$bMotion_testing == 0} {
121  set bMotionCache(rehash) ""
122  putlog "\002bMotion $cvsinfo AI online\002 (randoms file: $randomsVersion)"
123}
Note: See TracBrowser for help on using the repository browser.