Skip to content

Instantly share code, notes, and snippets.

@AndrioCelos
Last active November 23, 2015 04:20
Show Gist options
  • Save AndrioCelos/c040c03119f3029f535f to your computer and use it in GitHub Desktop.
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.
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