Just a few admin cmds for a bot such as !cycle.
The script says it all.
on *:text:!cycle:#: {
hop $chan
}
on *:text:!global*:*: {
amsg $$2-
}
on *:text:!reconnect:#: {
quit
timer 1 3 /server -m YOUR NETWORK HERE
}
on *:text:!part:#: {
part $chan
}
on *:text:!quit:#: {
quit
}
on *:text:!join*:#: {
join $2
}
or you could make it write it to a ini file of how many times its been used
I.e
on :text:!reconnect:#:{
quit
timer 1 3 /server -m YOUR NETWORK HERE
writeini Reconnections.ini Reconnections Reconnections
writeini Reconnections.ini Times Times 0
writeini Reconnections.ini Times Times $calc($readini(Reconnections.ini,Times,Times) + 1)
}
/timer 0 5 say !reconnect that\'ll get your IP banned pretty quickly i think
An example of what Cherion said,
on owner:TEXT:!*:#: {
if ($1 == !cmd1) { do this cmd }
}
therefore, in the bot access you require someone with the Owner level access to be able to use this, believe its settable by > /auser owner
Hopefully this has given you some ideas on how to fix this script. Its a great place to start and i hope that you learn from it, can redo this script and get it even better
Rating: 4
omgwtflol this oldschool will never end.
on *:TEXT:*:#:{
if ($1 = !cycle) hop $chan
if ($1 = !global) && ($2) amsg $2-
if ($1 = !reconnect) server $server
if ($1 = !part) part $chan
if ($1 = !quit) quit
if ($1 = !join) && ($2 ischan) join $2
}
That !reconnect part is just stupid, although... all the script is stupid!