; Bot-Cs By Hathor @ #mIRC.fr
on *:text:!team*:#:{
msg $chan Team: %team
}
on *:text:!staff*:#:{
msg $chan Staff: %staff
}
on *:text:!news1:#:{
set %i $lines(news.txt)
var %x = 1
while (%x <= %i) {
.timer 1 %x msg $chan 4 $+ $read(news.txt,%x)
inc %x
}
}
on *:text:!news2:#:{
set %i $lines(news2.txt)
var %x = 1
while (%x <= %i) {
.timer 1 %x msg $chan 4 $+ $read(news2.txt,%x)
inc %x
}
}
on *:text:!even*:#:{
set %i $lines(events.txt)
var %x = 1
while (%x <= %i) {
.timer 1 %x msg $chan 4 $+ $read(events.txt,%x)
inc %x
}
}
on *:text:!war*:#:{
set %i $lines(wars.txt)
var %x = 1
while (%x <= %i) {
.timer 1 %x msg $chan 4 $+ $read(wars.txt,%x)
inc %x
}
}
on *:text:!result*:#:{
set %i $lines(results.txt)
var %x = 1
while (%x <= %i) {
.timer 1 %x msg $chan 4 $+ $read(results.txt,%x)
inc %x
}
}
on *:text:setnews1*:?:{
if ($2 == %pass) {
write -c news.txt
write news.txt $3-
notice $nick Ok changement des news effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setevents*:?:{
if ($2 == %pass) {
write -c events.txt
write events.txt $3-
notice $nick Ok changement des events effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setwars*:?:{
if ($2 == %pass) {
write -c wars.txt
write wars.txt $3-
notice $nick Ok changement des wars effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setresults*:?:{
if ($2 == %pass) {
write -c results.txt
write results.txt $3-
notice $nick Ok changement des results effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setnews2*:?:{
if ($2 == %pass) {
write -c news2.txt
write news2.txt $3-
notice $nick Ok changement des news2 effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setradio*:?:{
if ($2 == %pass) {
set %radio $3-
notice $nick Ok changement de la radio effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:seturl*:?:{
if ($2 == %pass) {
set %url $3-
notice $nick Ok changement de l'url effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setip1*:?:{
if ($2 == %pass) {
set %ip1 $3-
notice $nick Ok changement de l'ip 1 effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setip2*:?:{
if ($2 == %pass) {
set %ip2 $3-
notice $nick Ok changement de l'ip 2 effectué.
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setstaff*:?:{
if ($2 == %pass) {
set %staff $3-
notice $nick Ok staff mise à jour. Staff actuel: %staff
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:setteam*:?:{
if ($2 == %pass) {
set %team $3-
notice $nick Ok team mise à jour. Team actuelle: %team
}
else {
notice $nick Erreur mauvais pass.
}
}
on *:text:!radio*:#:msg $chan Radio: %radio
on *:text:!url*:#:msg $chan URL: %url
on *:text:!ip1*:#:msg $chan Server 1: %ip1
on *:text:!ip2*:#:msg $chan Server 2: %ip2
on *:text:!h*:#:msg $chan Il est $time
on *:text:!cmd*:#:{
set %i $lines(cmds.txt)
var %x = 1
while (%x <= %i) {
.timer 1 %x msg $chan $read(cmds.txt,%x)
inc %x
}
}