Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 20:25:37 @Slide alright so ive got a trigger thing that reads from a text file
- 20:25:41 -`@: ok
- 20:25:52 @Slide is there a way to make it only work once every half hour or
- something
- 20:26:08 @Slide or, even better, to make it only work properly once every half
- hour and kickban the rest of the time
- on *:text:*:#:{
- if ($1 == !whatever) {
- ;check to see if the time variable is set
- if (%z0r == $null) {
- ;if not set, then make it $ctime and kick
- %z0r = $ctime
- .kick $chan $nick $read(file.txt)
- }
- ;if time elapsed is >30min, kick; else kickban
- if ($calc($ctime - %z0r) >= 1800) {
- .kick $chan $nick $read(file.txt)
- }
- else {
- .ban -k $chan $nick $read(file.txt)
- }
- }
- }
Add Comment
Please, Sign In to add comment