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

Reduce latency of Bot Connector
Does botkit or botframework run on multi node cluster
Telegram Bot webhook really slow
How do I figure out which channels my bot is in?
Microsoft Bot Framework - How to change presentation message
Unable to send a message to myself on phone using the Bots for Messenger API -getting 400 response from messenger API?
Is it possible to send the location from Telegram to Bot?
How to recognize telegram-bot from human
Can't get Messenger Bot approved
How can I test my kik bot before submitting it for review
bot configuration on kik is not working as expected
What is the goal of somebody probing my aws ec2 instance with apache2?
Can you go back a step in a waterfall dialog if the user entered wrong data? #botframework
Can AutoIt write text into a field? For example into a input tag of a website?
How to set kik bot webhook
What does botframework “Login failed due to MSA collision” mean? And how to fix?

Categories

HOME
protocol-buffers
android-studio
typelite
shinyapps
eclipse-plugin
yii
kivy
theano
tabs
gallery
openflow
javafx-8
kurento
sharepoint-online
wine
log4j2
colors
clish
pm2
texas-instruments
rest-assured
mixpanel
playframework-2.0
gravity
scala-ide
office-ui-fabric
jitsi
bsd
backtracking
kamailio
ini
exchange-server-2010
animated-gif
marquee
django-import-export
sfml
sales
credit-card
phpstorm-2016.1
seafile-server
mongoengine
autoencoder
jfxtras
numerics
uivisualeffectview
cartopy
iscroll
sbjson
praat
get-event-store
contactless-smartcard
virtual-memory
oracle-bmcs
nuclio
docker-ucp
bit-shift
scala-breeze
password-hash
cordova-ios
patternlab.io
rcharts
dymola
annotatorjs
cefpython
tablespace
conan
fiber
apple-configurator
voronoi
webgrind
python-cffi
mixins
ngcordova
prism-4
scala-swing
incron
phonegap-facebook-plugin
sunos
famo.us
zend-mail
lmax
full-text-indexing
coding-efficiency
pageviews
radius-protocol
jms-serializer
iosched
eclim
grails-2.3
delphi-xe4
spiral
oembed
2d-vector
office-app
system-requirements
lynx
thejit
uipangesturerecognizer
opends
vows
bll
git-log
resharper-5.1
cleartype
.net-services
oracle-pro-c
dm
firephp
rtti
remote-working

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