Warn kick ban log. Yes i know theres error but it works for me. BOT NICK is place the nick of the bot or persons that are doing the w.k.bs.
when w.k.b ing the reasons m,ust state the words in the text look up e.g botnick warns user not to try to buy / sell dugs.
this will then place nick was warned for drugs at time etc etc
;WKB Log
;by Jay
on 1:load:{
set %wkbswitch disabled
}
on 1:start:{
if (%wkbswitch == enabled) {
.enable #wkblog
window -xk[0] @UKMC_WKBLog
}
else {
.disable #wkblog
}
}
menu channel {
Warns, Kicks and Bans
.[[ %wkbswitch ]]:{
if (%wkbswitch == disabled) {
set %wkbswitch enabled
.enable #wkbscript
/window -xk[0] @UKMC_WKBLog
}
elseif (%wkbswitch == enabled) {
set %wkbswitch disabled
.disable #wkbscript
}
}
}
#wkbscript on
on 1:action:*:#:{
if (%wkbswitch == enabled && $nick == BOT NICK) {
aline 3 @UKMC_WKBLog $timestamp $2 warned on $chan (reason: $wkbtext_lookup($1-) $+ )
window -g1 @UKMC_WKBLog
}
}
on 1:kick:#:{
aline 7 @UKMC_WKBLog $timestamp $knick kicked on $chan (reason: $wkbtext_lookup($1-) $+ )
window -g1 @UKMC_WKBLog
}
on 1:ban:#:{
aline 4 @UKMC_WKBLog %time $bnick $chan banned (reason: Stated Below)
}
alias wkbtext_lookup {
if (*abusive* iswm $1-) {
return abuse
}
else if (*advertising* iswm $1-) {
return advertising
}
else if (*breaking UKMasterChats rules* iswm $1-) {
return breaking rules
}
else if (*scripts* iswm $1-) {
return Over use of scripts
}
else if (*requesting chat* iswm $1- || *chat requests* iswm $1-) {
return chat request
}
else if (*personal details* iswm $1-) {
return contact details
}
else if (*cyber* iswm $1- || *clean service* iswm $1-) {
return cyber
}
else if (*distruptive,* iswm $1- || *distruptive* iswm $1-) {
return disruption
}
else if (*drug* iswm $1-) {
return drugs
}
else if (*flooding* iswm $1-) {
return flooding
}
else if (*homophob* iswm $1-) {
return homophobia
}
else if (*illegal activity* iswm $1-) {
return illegal activity
}
else if (*imperson* iswm $1-) {
return impersonation
}
else if (*inappropriate comments* iswm $1- || *saying is inappropriate* iswm $1-) {
return inappropriate chat
}
else if (*wrong language* iswm $1- || *english speaking* iswm $1-) {
return wrong language
}
else if (*bad language* iswm $1- || *swear* iswm $1-) {
return swearing
}
else if (*nickname is unsuitable* iswm $1- || *unsuitable nickname* iswm $1-) {
return Bad nick
}
else if (*inappropriate name* iswm $1- || *choice of name* iswm $1-) {
return bad nickname
}
else if (*webcam* iswm $1-) {
return picture trading/webcam
}
else if (*racis* iswm $1-) {
return racism
}
else if (*repeat* iswm $1- || *repetition* iswm $1-) {
return repeating
}
else if (*threats* iswm $1-) {
return threats
}
else if ($regex($1-, (over|between) \d\d.*) > 0) {
return wrong age
}
else {
return unknown
}
}
menu @WKBLog {
Clear:clear
}
#UKMC_WKBLog end