Last active
November 23, 2015 04:20
-
-
Save AndrioCelos/c040c03119f3029f535f to your computer and use it in GitHub Desktop.
This script is required for CBot's BattleArenaManager plugin to work correctly. It allows the bot to remotely reload scripts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on *:TEXT:!!reload *:*:{ | |
; Replace this with your bot's vHost. | |
if ($address != ~Angelina@questers-rest.andriocelos.ml) return | |
var %i 2 | |
var %count $0 | |
while (%i <= %count) { | |
var %file = $gettok($1-, %i, 32) | |
if (*.als iswm %file) reload -a %file | |
else reload -rs %file | |
inc %i | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment