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