View difference between Paste ID: zMv4BrCq and w6YR4s60
SHOW: | | - or go back to the newest paste.
1
    # Command Bindings
2
     
3
    bind pub -|- ~commands proc_commands
4
    bind pub -|- !bj proc_blackjackcommands
5
    bind pub -|- !coin_and_roll proc_coindandrollcommands
6
    bind pub -|- !fightcmds proc_fightcommands
7
    bind pub -|- !holdemcmds proc_holdemcommands
8
    bind pub -|- !fishing_and_hunting proc_fishingandhuntingcommands
9
    bind pub -|- !unocmds proc_unocommands
10
    bind pub -|- !misc_cmds proc_misccommands
11-
    bind pub -|- !botmaster proc_bot_master
11+
    bind pub -|- !bot_mastercmds proc_bot_master
12-
    bind pub -|- !auto_op proc_auto_op
12+
    bind pub -|- !auto_opcmds proc_auto_op
13
    # Commands Process
14
     
15
    proc proc_commands { nick uhost hand chan text } {
16
      if {[matchattr $hand m|m $chan]} {
17
       putquick "NOTICE $nick :You Are Currently Bot Master, And Have Access To The Following Commands"
18
       proc_listcommands $nick $uhost $hand $chan
19
       return 0
20
      } elseif {[matchattr $hand o|o $chan]} {
21
       putquick "NOTICE $nick :You Are Currently Auto-Op, And Have Access To The Following Commands"
22
       proc_listcommands $nick $uhost $hand $chan
23
       return 0
24
      } else {
25
          putquick "NOTICE $nick :You Are A Basic User, And Have Access To The Following Commands"
26
          proc_listcommands $nick $uhost $hand $chan
27
          return 0
28
     }
29
    }
30
     proc proc_listcommands { nick uhost hand chan } {
31
           global botnick
32
	   putquick "NOTICE $nick :\002!bj - Commands for Blackjack\002"
33
	   putquick "NOTICE $nick :\002!coin_and_roll - Commands for Coin and Roll\002"
34
	   putquick "NOTICE $nick :\002!fightcmds - Commands for Fight\002"
35
	   putquick "NOTICE $nick :\002!holdemcmds - Texas Holdem Commands\002"
36
	   putquick "NOTICE $nick :\002!fishing_and_hunting - Fishing & Hunting Commands\002"
37
	   putquick "NOTICE $nick :\002!unocmds - Uno Commands\002"
38
	   putquick "NOTICE $nick :\002!misc_cmds - Miscellaneous Commands\002"
39
	   putquick "NOTICE $nick :\002!bot_mastercmds - Bot Master Commands\002"
40
	   putquick "NOTICE $nick :\002!auto_opcmds - Auto op Commands\002"
41
  }
42
  proc proc_auto_op { nick uhost hand chan text } {
43
          putquick "NOTICE $nick :\002AUTO-OP COMMANDS\002"
44
        putquick "NOTICE $nick :~commands\002 - Kinda Obvious Don't Ya Think.."
45
        putquick "NOTICE $nick :~opme\002 - Have The Bot Op You"
46
        putquick "NOTICE $nick :~deopme\002 - Have The Bot De-Op You"
47
        putquick "NOTICE $nick :~op <nickname>\002 - Have The Bot Op Someone"
48
        putquick "NOTICE $nick :~deop <nickname>\002 - Have Tbe Bot DeOp Someone"
49
        putquick "NOTICE $nick :~whois <nickname>\002 - Find Out If The Nickname Is In The Bots User Database"
50
        putquick "NOTICE $nick :~kick <nickname>\002 - Have The Bot To A Quick Kick Of Nickname"
51
        putquick "NOTICE $nick :~ban <nickname>\002 - Have The Bot Do A Quick Kick/Ban Of Nickname"
52
        putquick "NOTICE $nick :~server\002 - Find Out What Server:Port The Bot Is On"
53
        putquick "NOTICE $nick :~lc\002 - Lock The Channel To Prevent Flooding"
54
        putquick "NOTICE $nick :~uc\002 - Unlock The Channel"
55
        putquick "NOTICE $nick :\002END OF AUTO-OP COMMANDS\002"
56
	}
57
  }
58
  
59
  proc proc_bot_master { nick uhost hand chan text } {
60
      if {[matchattr $hand m|m $chan]} {
61
        putquick "NOTICE $nick :\002BOT MASTER COMMANDS\002"
62
        putquick "NOTICE $nick :~addop <nickname>\002 - Add The Nickname To The Bots Auto-Op List"
63
        putquick "NOTICE $nick :~delop <nickname>\002 - Remove The Nickname From The Bots Auto-Op List"
64
        putquick "NOTICE $nick :~adduser <nickname>\002 - Add  User To The User Database With Default Flags"
65
        putquick "NOTICE $nick :~deluser <nickname>\002 - Remove A User From The Bots Database, Can Be Used If User Needs To Re-Register With The Bot"
66
        putquick "NOTICE $nick :~jump <server>\002 - Forces The Bot To Change Servers To Server Entered"
67
        putquick "NOTICE $nick :~update\002 - Manually Update The Stats Site"
68
        putquick "NOTICE $nick :~gban <nickname>\002 - Add A Global Ban To The Bots Internal Ban List (ie: akick)"
69
        putquick "NOTICE $nick :\002END OF BOT MASTER COMMANDS"
70
      }
71
     }
72
     
73
     
74
 proc proc_blackjackcommands { nick uhost hand chan text } {
75
      global botnick
76
      putquick "NOTICE $nick :\002BLACKJACK COMMANDS\002 (must have more than 1 player to play)"
77
      putquick "NOTICE $nick :\002?blackjack on\002 - turn on blackjack in the channel (must be bot owner)"
78
      putquick "NOTICE $nick :\002?blackjack off\002 - turn off blackjack in the channel (must be bot owner)"
79
      putquick "NOTICE $nick :\002?blackjack\002 - start a game"
80
      putquick "NOTICE $nick :\002?blackjack stats\002 - get channel stats for blackjack"
81
      putquick "NOTICE $nick :\002?blackjack version\002 - shows the blackjack script version"
82
      putquick "NOTICE $nick :\002?join\002 - join a game once started"
83
      putquick "NOTICE $nick :\002?card\002 - get a card"
84
      putquick "NOTICE $nick :\002?enough\002 - finish with what cards you have"
85
      putquick "NOTICE $nick :\002?stop\002 - ends the game (must be bot owner)"
86
87
      }
88
      
89
 proc proc_coindandrollcommands { nick uhost hand chan text } {
90
      global botnick
91
      putquick "NOTICE $nick :\002COIN AND ROLL COMMANDS\002"
92
      putquick "NOTICE $nick :\002!coin nick\002 - to flip a coin between you and another nick"
93
      putquick "NOTICE $nick :\002!coin nick1 nick2\002 - to flip a coin between the two named nicks"
94
      putquick "NOTICE $nick :\002!roll nick1 nick2 nick3\002 - list any two or more nicks as the players, can use +me or your nick to include yourself"
95
      putquick "NOTICE $nick :\002!roll nick\002 - command user will be the second player"
96
      putquick "NOTICE $nick :\002!roll -all\002 - rolls the dice for every user in the channel"
97
      putquick "NOTICE $nick :\002!roll <number of players>\002 - example !roll 14, will roll 14 random nicks in the channel"
98
99
       }
100
       
101
 proc proc_fightcommands { nick uhost hand chan text } {
102
      global botnick
103
      putquick "NOTICE $nick :\002FIGHT COMMANDS\002"
104
      putquick "NOTICE $nick :\002!fight nick\002 - starts a fight with the nick"
105
      putquick "NOTICE $nick :\002!fj or !jab\002 - setup a jab"
106
      putquick "NOTICE $nick :\002!fp or !punch\002 - setup a punch"
107
      putquick "NOTICE $nick :\002!fk or !kick\002 - setup a kick"
108
      putquick "NOTICE $nick :\002!fu or !uppercut\002 - setup an uppercut"
109
      putquick "NOTICE $nick :\002!fg or !guard\002 - use guard"
110
      putquick "NOTICE $nick :\002!fd or !dodge\002 - dodge the attack"
111
      putquick "NOTICE $nick :\002!fs or !suicide\002 - kamikaze"
112
      putquick "NOTICE $nick :\002!fstat\002 - show your fight stats"
113
      putquick "NOTICE $nick :\002!fversion\002 - shows the script version"
114
      putquick "NOTICE $nick :\002!fhis\002 - shows fight history"
115
116
      }
117
      
118
 proc proc_holdemcommands { nick uhost hand chan text } {
119
      global botnick
120
      putquick "NOTICE $nick :\002!HOLDEM POKER COMMANDS\002"
121
      putquick "NOTICE $nick :\002!holdem\002 - starts the game"
122
      putquick "NOTICE $nick :\002!join\002 - joins a started game"
123
      putquick "NOTICE $nick :\002!play\002 - use to start a game without waiting 60secs for others to join"
124
      putquick "NOTICE $nick :\002call\002"
125
      putquick "NOTICE $nick :\002check\002"
126
      putquick "NOTICE $nick :\002raise amount\002 - use to raise the bet, ie. raise 20 or raise all-in"
127
      putquick "NOTICE $nick :\002fold\002 - give up on the current hand being played"
128
      putquick "NOTICE $nick :\002cards\002 - shows your current hand"
129
      putquick "NOTICE $nick :\002!endgame\002 - stops the game"
130
131
}
132
133
proc proc_fishingandhuntingcommands { nick uhost hand chan text } {
134
      global botnick
135
      putquick "NOTICE $nick :\002FISHING AND HUNTING COMMANDS\002"
136
      putquick "NOTICE $nick :\002!hunt\002 - try and hunt something"
137
      putquick "NOTICE $nick :\002!cast\002 - try to catch a fish"
138
      putquick "NOTICE $nick :\002!trophy\002 - shows current record holders"
139
140
      }      
141
      
142
 proc proc_unocommands { nick uhost hand chan text} {
143
      global botnick
144
      putquick "NOTICE $nick :\002UNO COMMANDS\002"
145
      putquick "NOTICE $nick :\002!uno\002 - starts a game of uno"
146
      putquick "NOTICE $nick :\002join\002 - join a game"
147
      putquick "NOTICE $nick :\002!remove\002 - remove yourself from a game in progress"
148
      putquick "NOTICE $nick :\002time\002 - shows how long the current game has been running"
149
      putquick "NOTICE $nick :\002order\002 - shows the order of players"
150
      putquick "NOTICE $nick :\002hand\002 - shows your current cards"
151
      putquick "NOTICE $nick :\002turn\002 - shows whos turn it is to play a card"
152
      putquick "NOTICE $nick :\002players\002 - shows the list of players in the current game"
153
      putquick "NOTICE $nick :\002play\002 - play a card. to play a yellow 2 you would type play y 2"
154
      putquick "NOTICE $nick :\002card\002 - shows the current card in play"
155
      putquick "NOTICE $nick :\002draw\002 - draw a card if you have nothing to use"
156
      putquick "NOTICE $nick :\002color\002 - used with WILD and WILD DRAW FOUR, usage is color yellow or color red etc."
157
      putquick "NOTICE $nick :\002pass\002 - use after drawing a card if you didnt pick up something you could use"
158
      putquick "NOTICE $nick :\002count\002 - shows how many cards each player has left in their hand"
159
      putquick "NOTICE $nick :\002!unowon\002 - shows how many games you have won"
160
      putquick "NOTICE $nick :\002!unotop10\002 - shows the top 10 players"
161
      putquick "NOTICE $nick :\002!unorules\002 - shows the rules for gameplay"
162
163
      }
164
      
165
  proc proc_misccommands { nick uhost hand chan text } {
166
      global botnick
167
      putquick "NOTICE $nick :\002MISC COMMANDS\002"
168
      putquick "NOTICE $nick :\002!pastlife\002 - usage is !pastlife month day year ie. !pastlife 9 17 1982"
169
      putquick "NOTICE $nick :\002!morbid\002 - will display a random morbid fact"
170
      putquick "NOTICE $nick :\002!fact\002 - will display a random fact"
171
      putquick "NOTICE $nick :\002!timebomb nick\002 - timebombs the nickname with random number of wires and time, user must cutwire color to save themselves"
172
      putquick "NOTICE $nick :\002trivia\002 - toggles start and stop of trivia game"
173
      putquick "NOTICE $nick :\002END OF BASIC USER COMMANDS\002"
174
175
    }
176
     
177
     
178
    putlog "*** Op Commands by xTc^bLiTz <[email protected]>  Loaded"