bots


MIRC anti-flood script


I'm looking for a way to kick users for flood.
The idea is:
on [lessthanhalfop]:text:*:#chan: {
If [timer$nick] !== 0 {
set %kickstate$nick +1
if %kickstate$nick < 4 {
kick $nick #chan [reason:flood]
echo > kickedlist.txt
delete [timer$nick]
delete [timer$nick]
makenew timer with 4 seconds
}
Set timer$nick 5seconds
}
Can anyone help me with this so that it is workable with unique timers for each $nick so that they do not overide for each user.
All i want it to do is kick people that flood the chat by typing within a particular time period(in this case 2 secons). Can anyone help me solve this?
I'm using mIRC, but the channel is in the swiftirc network, if anyone wants to know.
Solution:
A. We are setting a variable and incremental (with a live span of 2 seconds) with the following format "cTxtFlood.USER-ADDRESS". this allow us to track every new flooder at our system + it will clean the people who talked BUT not flooders.
B. We are checking if the variable counter exceed X lines (5 in the example)
C. If flooder, then we are banning and kicking the user with a ban span of 300 seconds.
Little info:
chan - the channel you want to protect
#* - only if I got op at the channel
-u2 = unset variable in 2 seconds
ban -ku300 = kick and ban for 300 seconds
Complete Code (wasn't tested)
on #*:text:*:#chan: {
inc -u2 % [ $+ [ $+(cTxtFlood.,$wildsite) ] ]
if (% [ $+ [ $+(cTxtFlood.,$wildsite) ] ] == 5) {
echo -ag ban -ku300 # $nick 2 Channel Flood Protection (5 lines at 2 sec's)
}
}

Related Links

scope of questions in api.ai
How to deal with Context.Done(R value)
I set my telegram bot webhook, but do not send the telegram. Why?
Telegram Sirikit not able to talk to bot
What tools are available for developing complex chatbot conversation trees?
Initiate proactive prompt without breaking dialog in bot framework
Using Webhooks in a Team Environment
How to build bot GUI in slack.
Microsoft Bot- Looping with same answer even input is different
How i can disable web preview?
Button messages on Kik Messenger
How to analyze traffic sources in Facebook Analytics for a Messenger Bot?
Can a notification trigger a bot in a chatroom?
Messenger bot does not respect the message order
Chatbot with large DB integration
Interest to publish a bot? [closed]

Categories

HOME
jboss
openshift
android-studio
blast
angular-ui-grid
livecode
exchange-server
iverilog
celery
jersey-2.0
nsis
web2py
haxe
twitter-oauth
sap-fiori
amazon-elb
jpa-2.0
texas-instruments
cocos2d-android
susy-sass
infrared
jitsi
hdl
bosun
restier
software-packaging
vuforia
mod-wsgi
fusetools
tracing
tortoisehg
bonita
sparkle
region
unmarshalling
tilemill
locks
toad
winsock
netbios
private-key
image-optimization
nppexec
netstat
django-crispy-forms
cartopy
hdiv
hypothesis-test
contactless-smartcard
code-push
kitura
.net-micro-framework
directwrite
md5-file
webvtt
stateless-session-bean
emf-compare
gawk
qtextedit
ternary-operator
e
livereload
apache-pig-grunt
apple-configurator
processor
taco
wikimedia-commons
flask-security
ajax4jsf
stack-smash
chicagoboss
uitest
tree-structure
innerhtml
android-audiomanager
thoughtworks-go
webmethod
otl
nachos
xulrunner
radius-protocol
django-sites
indesign-server
donut-chart
cyrillic
multiple-dispatch
spark-view-engine
gitx
struts2-json-plugin
background-repeat
datacontracts
canonicalization
chunking
android-input-method
eventaggregator
dm
wmd-editor
jquery-effects

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App