Browse Source

Splitted copbot from /srv/script/ repository to a dedicated one (#3334 > #3854).

master
Christian P. MOMON 2 years ago
committed by root
parent
commit
dbcbd8c0f0
  1. 8
      .gitignore
  2. 0
      LICENSE
  3. 1
      bots/copbot/.bash_history
  4. 5
      bots/copbot/.gitignore
  5. 6074
      bots/copbot/copbot.log
  6. 152
      bots/copbot/copbot.py.bak
  7. 152
      bots/copbot/copbot.py~
  8. 285
      bots/copbot/nohup.out
  9. 0
      copbot.py
  10. 0
      copbot.sh

8
.gitignore

@ -1 +1,7 @@
bots/copbot/copbot.log
*~
\#*\#
.\#*
.bash_history
copbot.log*
copbot.log
password.txt

0
bots/copbot/LICENSE → LICENSE

1
bots/copbot/.bash_history

@ -1 +0,0 @@
/usr/bin/python2.7 /srv/redminebot/redminebot.py

5
bots/copbot/.gitignore

@ -1,5 +0,0 @@
.bash_history
copbot.log*
copbot.log
bots/copbot/copbot.log*
bots/copbot/copbot.log

6074
bots/copbot/copbot.log
File diff suppressed because it is too large
View File

152
bots/copbot/copbot.py.bak

@ -1,152 +0,0 @@
#!/usr/bin/python -u
# -*- coding: utf-8 -1 -*-
# Import some necessary libraries.
import socket, sys, time, csv, Queue, random, re, pdb, select, os.path, datetime
from threading import Thread
import feedparser
import xml.dom.minidom
from time import mktime, localtime
import iso8601
# IRC configuration
default_server = "irc.eu.freenode.net"
default_nickname = "bot-cop"
ban_list = ["fentanyl scams"]
#########################
### Class Definitions ###
#########################
class Project(object):
def __init__(self, project, channel):
self.name = project
self.channel = channel
self.bot_next = datetime.datetime.utcnow()
self.bot_latest = datetime.datetime.utcnow()
def set_ircsock ( self, ircsock ):
self.ircsock = ircsock
# Defines a bot
class Bot(object):
def __init__(self, server, botnick):
self.botnick = botnick
self.ban_regex = re.compile(self.get_regex(ban_list), re.I)
self.server = server
self.projects = [ ]
def connect(self):
self.ircsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.ircsock.connect((self.server, 6667))
self.ircsock.send("USER {0} {0} {0} :Robot Agir April"
".\n".format(self.botnick)) # bot authentication
self.ircsock.send("NICK {}\n".format(self.botnick)) # Assign the nick to the bot.
if os.path.isfile("password.txt"):
with open("password.txt", 'r') as f:
password = f.read()
if registered == True:
self.ircsock.send("PRIVMSG {} {} {} {}".format("NickServ","IDENTIFY", self.botnick, password))
def add_project(self, project):
project.set_ircsock ( self.ircsock )
self.ircsock.send("JOIN {} \n".format(project.channel)) # Joins channel
self.projects.append(project)
def get_project(self, name):
for project in self.projects:
if name[0] != '#' and project.name == name:
return project
elif name[0] == '#' and project.channel == name:
return project
# Main loop
def loop(self):
last_read = datetime.datetime.utcnow()
while 1: # Loop forever
ready_to_read, b, c = select.select([self.ircsock],[],[], 1)
if ready_to_read:
last_read = datetime.datetime.utcnow()
ircmsg = self.msg_handler()
ircmsg, actor, channel = self.parse_messages(ircmsg)
if ircmsg is not None:
self.message_response(ircmsg, actor, channel)
if datetime.datetime.utcnow() - last_read > datetime.timedelta(minutes=10):
raise Exception('timeout: nothing to read on socket since 10 minutes')
# Responds to server Pings.
def pong(self, ircmsg):
response = "PONG :" + ircmsg.split("PING :")[1] + "\n"
self.ircsock.send(response)
# Parses messages and responds to them appropriately.
def message_response(self, ircmsg, actor, channel):
# If someone talks to (or refers to) the bot.
if self.ban_regex.search(ircmsg):
self.bot_ban(channel,actor)
# If the server pings us then we've got to respond!
if ircmsg.find("PING :") != -1:
self.pong(ircmsg)
# Responds to a user that inputs "Ban Mybot".
def bot_ban(self, channel, fucker):
self.ircsock.send("KICK {0} :{1}\n".format(channel, fucker))
# Explains what the bot is when queried.
def bot_help(self, channel):
self.ircsock.send("PRIVMSG {} :Bonjour, je suis un bot qui reconnaît les options !help, !refresh et !bonjour\n".format(channel))
# Reads the messages from the server and adds them to the Queue and prints
# them to the console. This function will be run in a thread, see below.
def msg_handler(self): # pragma: no cover (this excludes this function from testing)
new_msg = self.ircsock.recv(2048) # receive data from the server
new_msg = new_msg.strip('\n\r') # removing any unnecessary linebreaks
if new_msg != '' and new_msg.find("PING :") == -1:
print(datetime.datetime.now().isoformat() + " " + new_msg)
return new_msg
# Checks for messages.
def parse_messages(self, ircmsg):
try:
actor = ircmsg.split(":")[1].split("!")[0]
try:
target = ircmsg.split(":")[1].split(" ")[2]
except:
target = None
return " ".join(ircmsg.split()), actor, target
except:
# print "Wrong message:", ircmsg
return None, None, None
# Compile regex
def get_regex(self, options):
pattern = "("
for s in options:
pattern += s
pattern += '|'
pattern = pattern[:-1]
pattern += ")"
return pattern
##########################
### The main function. ###
##########################
def main():
cop_bot = Bot(default_server, default_nickname)
cop_bot.connect()
cop_bot.add_project(Project('admins','#april-admin'))
cop_bot.add_project(Project('april','#april'))
return cop_bot.loop()
if __name__ == "__main__":
sys.exit(main())

152
bots/copbot/copbot.py~

@ -1,152 +0,0 @@
#!/usr/bin/python -u
# -*- coding: utf-8 -1 -*-
# Import some necessary libraries.
import socket, sys, time, csv, Queue, random, re, pdb, select, os.path, datetime
from threading import Thread
import feedparser
import xml.dom.minidom
from time import mktime, localtime
import iso8601
# IRC configuration
default_server = "irc.eu.freenode.net"
default_nickname = "bot-cop"
ban_list = ["fentanyl scams fraudster scams"]
#########################
### Class Definitions ###
#########################
class Project(object):
def __init__(self, project, channel):
self.name = project
self.channel = channel
self.bot_next = datetime.datetime.utcnow()
self.bot_latest = datetime.datetime.utcnow()
def set_ircsock ( self, ircsock ):
self.ircsock = ircsock
# Defines a bot
class Bot(object):
def __init__(self, server, botnick):
self.botnick = botnick
self.ban_regex = re.compile(self.get_regex(ban_list), re.I)
self.server = server
self.projects = [ ]
def connect(self):
self.ircsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.ircsock.connect((self.server, 6667))
self.ircsock.send("USER {0} {0} {0} :Robot Agir April"
".\n".format(self.botnick)) # bot authentication
self.ircsock.send("NICK {}\n".format(self.botnick)) # Assign the nick to the bot.
if os.path.isfile("password.txt"):
with open("password.txt", 'r') as f:
password = f.read()
if registered == True:
self.ircsock.send("PRIVMSG {} {} {} {}".format("NickServ","IDENTIFY", self.botnick, password))
def add_project(self, project):
project.set_ircsock ( self.ircsock )
self.ircsock.send("JOIN {} \n".format(project.channel)) # Joins channel
self.projects.append(project)
def get_project(self, name):
for project in self.projects:
if name[0] != '#' and project.name == name:
return project
elif name[0] == '#' and project.channel == name:
return project
# Main loop
def loop(self):
last_read = datetime.datetime.utcnow()
while 1: # Loop forever
ready_to_read, b, c = select.select([self.ircsock],[],[], 1)
if ready_to_read:
last_read = datetime.datetime.utcnow()
ircmsg = self.msg_handler()
ircmsg, actor, channel = self.parse_messages(ircmsg)
if ircmsg is not None:
self.message_response(ircmsg, actor, channel)
if datetime.datetime.utcnow() - last_read > datetime.timedelta(minutes=10):
raise Exception('timeout: nothing to read on socket since 10 minutes')
# Responds to server Pings.
def pong(self, ircmsg):
response = "PONG :" + ircmsg.split("PING :")[1] + "\n"
self.ircsock.send(response)
# Parses messages and responds to them appropriately.
def message_response(self, ircmsg, actor, channel):
# If someone talks to (or refers to) the bot.
if self.ban_regex.search(ircmsg):
self.bot_ban(channel,actor)
# If the server pings us then we've got to respond!
if ircmsg.find("PING :") != -1:
self.pong(ircmsg)
# Responds to a user that inputs "Ban Mybot".
def bot_ban(self, channel, fucker):
self.ircsock.send("KICK {0} :{1}\n".format(channel, fucker))
# Explains what the bot is when queried.
def bot_help(self, channel):
self.ircsock.send("PRIVMSG {} :Bonjour, je suis un bot qui reconnaît les options !help, !refresh et !bonjour\n".format(channel))
# Reads the messages from the server and adds them to the Queue and prints
# them to the console. This function will be run in a thread, see below.
def msg_handler(self): # pragma: no cover (this excludes this function from testing)
new_msg = self.ircsock.recv(2048) # receive data from the server
new_msg = new_msg.strip('\n\r') # removing any unnecessary linebreaks
if new_msg != '' and new_msg.find("PING :") == -1:
print(datetime.datetime.now().isoformat() + " " + new_msg)
return new_msg
# Checks for messages.
def parse_messages(self, ircmsg):
try:
actor = ircmsg.split(":")[1].split("!")[0]
try:
target = ircmsg.split(":")[1].split(" ")[2]
except:
target = None
return " ".join(ircmsg.split()), actor, target
except:
# print "Wrong message:", ircmsg
return None, None, None
# Compile regex
def get_regex(self, options):
pattern = "("
for s in options:
pattern += s
pattern += '|'
pattern = pattern[:-1]
pattern += ")"
return pattern
##########################
### The main function. ###
##########################
def main():
cop_bot = Bot(default_server, default_nickname)
cop_bot.connect()
cop_bot.add_project(Project('admins','#april-admin'))
cop_bot.add_project(Project('april','#april'))
return cop_bot.loop()
if __name__ == "__main__":
sys.exit(main())

285
bots/copbot/nohup.out

@ -1,285 +0,0 @@
2018-08-06T09:29:58.294451 :hobana.freenode.net NOTICE * :*** Looking up your hostname...
2018-08-06T09:29:58.339111 :hobana.freenode.net NOTICE * :*** Checking Ident
2018-08-06T09:29:58.416170 :hobana.freenode.net NOTICE * :*** Found your hostname
2018-08-06T09:30:08.880690 :hobana.freenode.net NOTICE * :*** No Ident response
2018-08-06T09:30:08.881279 :hobana.freenode.net 001 bot-cop :Welcome to the freenode Internet Relay Chat Network bot-cop
:hobana.freenode.net 002 bot-cop :Your host is hobana.freenode.net[81.18.73.123/6667], running version ircd-seven-1.1.5
:hobana.freenode.net 003 bot-cop :This server was created Wed Jan 24 2018 at 21:31:07 UTC
:hobana.freenode.net 004 bot-cop hobana.freenode.net ircd-seven-1.1.5 DOQRSZaghilopswz CFILMPQSbcefgijklmnopqrstvz bkloveqjfI
:hobana.freenode.net 005 bot-cop CHANTYPES=# EXCEPTS INVEX CHANMODES=eIbq,k,flj,CFLMPQScgimnprstz CHANLIMIT=#:120 PREFIX=(ov)@+ MAXLIST=bqeI:100 MODES=4 NETWORK=freenode KNOCK STATUSMSG=@+ CALLERID=g :are supported by this server
:hobana.freenode.net 005 bot-cop CASEMAPPING=rfc1459 CHARSET=ascii NICKLEN=16 CHANNELLEN=50 TOPICLEN=390 ETRACE CPRIVMSG CNOTICE DEAF=D MONITOR=100 FNC TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR: :are supported by this server
:hobana.freenode.net 005 bot-cop EXTBAN=$,ajrxz WHOX CLIENTVER=3.0 SAFELIST ELIST=CTU :are supported by this server
:hobana.freenode.net 251 bot-cop :There are 113 users and 90233 invisible on 34 servers
:hobana.freenode.net 252 bot-cop 32 :IRC Operators online
:hobana.freenode.net 253 bot-cop 45 :unknown connection(s)
:hobana.freenode.net 254 bot-cop 50944 :channels formed
:hobana.freenode.net 255 bot-cop :I have 454
2018-08-06T09:30:08.881540 0 clients and 1 servers
:hobana.freenode.net 265 bot-cop 4540 5577 :Current local users 4540, max 5577
:hobana.freenode.net 266 bot-cop 90346 96965 :Current global users 90346, max 96965
:hobana.freenode.net 250 bot-cop :Highest connection count: 5578 (5577 clients) (888261 connections received)
:hobana.freenode.net 375 bot-cop :- hobana.freenode.net Message of the Day -
:hobana.freenode.net 372 bot-cop :- Welcome to hobana.freenode.net in Bucharest, Romania! Thank
:hobana.freenode.net 372 bot-cop :- you to RCS-RDS for sponsoring this server!
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Ion Hobana (1931-2011) was a Romanian science fiction writer,
:hobana.freenode.net 372 bot-cop :- literary critic and ufologist. Ion Hobana is a literary
:hobana.freenode.net 372 bot-cop :- pseudonym, the writer's real name being Aurelian Manta Rosie.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Welcome to freenode - supporting the free and open source
:hobana.freenode.net 372 bot-cop :- software communities since 1998.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- By connecting to freenode you indicate that you have read and
:hobana.freenode.net 372 bot-cop :- accept our policies and guidelines as set out on https://freenode.net
:hobana.free
2018-08-06T09:30:08.881697 node.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- In the event that you observe behaviour that contravenes our policies,
:hobana.freenode.net 372 bot-cop :- please notify a volunteer staff member via private message, or send us an
:hobana.freenode.net 372 bot-cop :- e-mail to complaints@freenode.net -- we will do our best to address the
:hobana.freenode.net 372 bot-cop :- situation within a reasonable period of time, and we may request further
:hobana.freenode.net 372 bot-cop :- information or, as appropriate, involve other parties such as channel operators
:hobana.freenode.net 372 bot-cop :- Group Contacts representing an on-topic group.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- freenode runs an open proxy scanner.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- If you are looking for assistance, you will be able to find a list of
:hobana.freenode.net 372 bot-cop :- volunteer staff using the '/who freenode/staff/*' command, and you may
:hobana.freenode.net 372 bot-cop :- message any of us at any time. Please note that freenode predominantly
:hobana.freenode.net 372 bot-cop :- provides assistance via private message, and while we have a network
:hobana.freenode.net 372 bot-cop :- channel the primary venue for support requests is via private me
2018-08-06T09:30:08.882026 ssage to
:hobana.freenode.net 372 bot-cop :- a member of the volunteer staff team.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- From time to time, volunteer staff may send server-wide notices relating to
:hobana.freenode.net 372 bot-cop :- the project, or the communities that we host. The majority of such notices
:hobana.freenode.net 372 bot-cop :- will be sent as wallops, and you can '/mode <yournick> +w' to ensure that you
:hobana.freenode.net 372 bot-cop :- do not miss them. Important messages relating to the freenode project, including
:hobana.freenode.net 372 bot-cop :- notices of upcoming maintenance and other scheduled downtime will be issued as
:hobana.freenode.net 372 bot-cop :- global notices.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Representing an on-topic project? Don't forget to register, more information
:hobana.freenode.net 372 bot-cop :- can be found on the https://freenode.net website under "Group Registration".
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- freenode organises an annual conference, and we would like to extend our
:hobana.freenode.net 372 bot-cop :- thanks to the attendees, exhibitors and speakers who made freenode #live 2017
:hobana.freenode.net 372 bot-cop :- possible. And of course, our g
2018-08-06T09:30:08.925900 enerous sponsors: Bytemark, Canonical (Ubuntu),
:hobana.freenode.net 372 bot-cop :- Falanx Cyber Security, Private Internet Access and Yubico for footing the bill.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Thank you also to our server sponsors for the sustained support in keeping the
:hobana.freenode.net 372 bot-cop :- network going for close to two decades.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- freenode #live returns to Bristol, UK on November 3rd-4th 2018. Our Call for
:hobana.freenode.net 372 bot-cop :- Proposals is live at https://freenode.live and open until July 31, 2018. If
:hobana.freenode.net 372 bot-cop :- you are interested in sponsoring this event, please send an e-mail to
:hobana.freenode.net 372 bot-cop :- sponsor@freenode.live
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Thank you for using freenode!
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 376 bot-cop :End of /MOTD command.
:bot-cop MODE bot-cop :+Ri
2018-08-06T09:30:09.526301 :freenode-connect!frigg@freenode/utility-bot/frigg PRIVMSG bot-cop :VERSION
2018-08-06T09:30:09.571041 :freenode-connect!frigg@freenode/utility-bot/frigg NOTICE bot-cop :Due to the persistent ongoing spam, all new connections are being scanned for vulnerabilities. This will not harm your computer, and vulnerable hosts will be notified
2018-08-06T09:30:14.171886 :bot-cop!~bot-cop@virola.april.org JOIN #april-admin
2018-08-06T09:30:14.172729 :hobana.freenode.net 332 bot-cop #april-admin :Sysadmins de l'April - www.april.org - Astreinte été 2018 https://pad.april.org/p/Astreinte_SI_ete_2018
:hobana.freenode.net 333 bot-cop #april-admin madix!~madix@april/staff/madix 1531229501
:hobana.freenode.net 353 bot-cop = #april-admin :bot-cop sushichef louxor Casper_v2 guerby madix vincentxavier echarp QGuLL vivivi[1] heraclide ced117 edausq agirbot olasd theocrite APLU rh Taelia dachary cpm_screen gentux Sp4rKy
:hobana.freenode.net 366 bot-cop #april-admin :End of /NAMES list.
:bot-cop!~bot-cop@virola.april.org JOIN #april
:hobana.freenode.net 332 bot-cop #april :April - Promouvoir et défendre le Logiciel Libre - Vous avez des questions, vous voulez aider ? N'hésitez pas à poser des questions, donner votre avis… - Revue hebdomadaire chaque vendredi à 12h http://apr1.org/bU
:hobana.freenode.net 333 bot-cop #april madix!~madix@april/staff/madix 1485622773
:hobana.freenode.net 353 bot-cop @ #april :bot-cop conno Oleti oumph flo2marsnet Fauve Ycarus _aeris_ louxor alexandrie GNUtoo nijaba freetux Adri2000 Roux guerby isAAAc_ geb madix vincentxavier _khrys_ Ellyan echarp irina11y toony pierre_bear _Myriam_ april-supybot` mathieui hanitles- floreal xnx thunderscore KippiX lool Emenems z4c_ feth sparty_ myckeul_ JYS_ mat_ heraclide ced117 jaster pfreund McPeter LowM
2018-08-06T09:30:14.216740 emory Cadmos edausq eseyman gnunux Mindiell paulk-leonov gtom Aerya Thom1 y0ur1 Aime38_ dino
:hobana.freenode.net 353 bot-cop @ #april :zoobab nahuel Meriem albanc gibus barzi Daerist hackunoichi _domi_ Akahyperion[m] GoldenBear spiwit iderrick_ QGuLL lucas_ coucouf olasd spiderweak theocrite__ amj theocrite bev_ vinci APLU fatalerrors rh Taelia peb` Nazral dachary minimaxwell cpm_screen baud gentux @ChanServ loddfafnir Porkepix tbmb @Sp4rKy sebl Siltaar Roux_screen boblefrag
:hobana.freenode.net 366 bot-cop #april :End of /NAMES list.
2018-08-06T09:30:14.305774 :services. 328 bot-cop #april :http://www.april.org/
2018-08-06T09:30:19.055191 :sushichef!~sushichef@14.187.136.12 QUIT :Ping timeout: 260 seconds
2018-08-06T09:30:32.966216 :madix!~madix@april/staff/madix PRIVMSG #april :j'ai modifié bot-cop pour tenir compte des nouveaux messages
2018-08-06T09:30:40.798231 :madix!~madix@april/staff/madix PRIVMSG #april-admin :j'ai modifié bot-cop pour tenir compte des nouveaux messages
2018-08-06T09:30:51.600509 :madix!~madix@april/staff/madix PRIVMSG #april-admin :je l'ai lancé via nohup python copbot.py
2018-08-06T09:32:23.445265 :conno!~conno@14.168.210.65 QUIT :K-Lined
2018-08-06T09:35:50.129446 :madix!~madix@april/staff/madix PRIVMSG #april :GNUtoo vincentxavier _khrys_ echarp cpm_screen dachary rh theocrite theocrite__ olasd gibus eseyman heraclide et les autres : pour le prochain apéro au local quelles sont vos préférences/disponibilités entre les vendredis 10, 17, 24 et 31 août ?
2018-08-06T09:36:53.032930 :olasd!~olasd@pdpc/supporter/active/olasd PRIVMSG #april :je suis là seulement le 17 et 24
2018-08-06T09:37:03.600094 :olasd!~olasd@pdpc/supporter/active/olasd PRIVMSG #april :ah non je suis pris le 24
2018-08-06T09:37:16.248052 :olasd!~olasd@pdpc/supporter/active/olasd PRIVMSG #april :du coup 17 or bust
2018-08-06T09:37:26.390739 :madix!~madix@april/staff/madix PRIVMSG #april :c'est noté
2018-08-06T09:40:41.806612 :madix!~madix@april/staff/madix PRIVMSG #april :et ping coucouf aussi (pour l'apéro)
2018-08-06T09:41:03.324464 :madix!~madix@april/staff/madix PRIVMSG #april :olasd: il te reste des couteaux debian à vendre ?
2018-08-06T09:42:02.434706 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :madix: salut, bon retour parmi nous
2018-08-06T09:42:15.036280 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :le bot a été bricolé rapidement par benj si j'ai bien compris
2018-08-06T09:42:36.954817 :madix!~madix@april/staff/madix PRIVMSG #april-admin :QGuLL: merci :)
2018-08-06T09:42:47.486083 :coucouf!~coucouf@195-154-188-237.rev.poneytelecom.eu PRIVMSG #april :Dispo que le 10
2018-08-06T09:42:52.683941 :madix!~madix@april/staff/madix PRIVMSG #april-admin :QGuLL: ce n'est pas un bot proposé par le staff freenode ?
2018-08-06T09:43:21.743916 :coucouf!~coucouf@195-154-188-237.rev.poneytelecom.eu PRIVMSG #april :Mais j'ai fait plein d'apéro récemment alors je peux passer mon tour si c'est une autre date :-)
2018-08-06T09:43:32.342507 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :nan
2018-08-06T09:43:43.430601 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :si j'ai bien compris, benj n'arrive pas à le faire venir ici
2018-08-06T09:43:47.786735 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :par contre ce qu'on peut faire ici
2018-08-06T09:44:04.380858 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :c'est mettre en +v et automatiquement granter au bout de 30sec ?
2018-08-06T09:44:11.591332 :madix!~madix@april/staff/madix PRIVMSG #april-admin :le bot est présent ici
2018-08-06T09:44:20.633369 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :bot-cop c'est le bot de benj
2018-08-06T09:44:20.678124 :madix!~madix@april/staff/madix PRIVMSG #april ::)
2018-08-06T09:44:39.175187 :madix!~madix@april/staff/madix PRIVMSG #april-admin :ok
2018-08-06T09:45:03.461334 :olasd!~olasd@pdpc/supporter/active/olasd PRIVMSG #april :madix: enventelibre.org dit que oui
2018-08-06T09:45:29.257928 :eseyman!~eseyman@LFbn-1-9154-14.w86-238.abo.wanadoo.fr PRIVMSG #april :je pars le 17 au soir en vacances donc c'est 10 ou rien pour moi
2018-08-06T09:46:21.916495 :madix!~madix@april/staff/madix PRIVMSG #april :olasd: il est vrai que je pourrais le commander via enventelibre et le récupérer sur place
2018-08-06T09:47:30.300421 :olasd!~olasd@pdpc/supporter/active/olasd PRIVMSG #april :madix: l'unique stock est sur evl
2018-08-06T09:47:39.633857 :madix!~madix@april/staff/madix PRIVMSG #april :ok
2018-08-06T09:48:23.756326 :madix!~madix@april/staff/madix PRIVMSG #april-admin :la première chose à faire serait la création d'une tâche agir pour le suivi
2018-08-06T09:49:55.894066 :madix!~madix@april/staff/madix PRIVMSG #april :echarp: pas de rp à relire ?
2018-08-06T09:54:17.376465 :tsp0!~tsp@218.151.45.71 JOIN #april-admin
2018-08-06T09:54:21.350120 :tsp0!~tsp@218.151.45.71 PRIVMSG #april-admin :After the acquisition by Private Internet Access, Freenode is now being used to push ICO scams https://www.coindesk.com/handshake-revealed-vcs-back-plan-to-give-away-100-million-in-crypto/
2018-08-06T09:54:26.490931 :tsp0!~tsp@218.151.45.71 PRIVMSG #april-admin :"All told, Handshake aims to give $250 worth of its tokens to *each* user of the websites the company has partnerships with – GitHub, the P2P Foundation and *FREENODE*, a chat channel for peer-to-peer projects. As such, developers who have existing accounts on each could receive up to $750 worth of Handshake tokens."
2018-08-06T09:54:30.133180 :tsp0!~tsp@218.151.45.71 PRIVMSG #april-admin :Handshake cryptocurrency scam is operated by Andrew Lee (276-88-0536), the fraudster in chief at Private Internet Access which now owns Freenode
2018-08-06T09:54:34.797834 :tsp0!~tsp@218.151.45.71 PRIVMSG #april-admin :Freenode is registered as a "private company limited by guarantee without share capital" performing "activities of other membership organisations not elsewhere classified", with Christel and Andrew Lee (PIA's founder) as officers, and Andrew Lee having the majority of voting rights
2018-08-06T09:54:38.136206 :tsp0!~tsp@218.151.45.71 PRIVMSG #april-admin :Even christel, the freenode head of staff is actively peddling this scam https://twitter.com/christel/status/1025089889090654208
2018-08-06T09:54:42.323162 :tsp0!~tsp@218.151.45.71 PRIVMSG #april-admin :Don't support freenode and their ICO scam, switch to a network that hasn't been co-opted by corporate interests. OFTC or efnet might be a good choice. Perhaps even https://matrix.org/
2018-08-06T09:54:46.707180 :tsp0!~tsp@218.151.45.71 QUIT :Remote host closed the connection
2018-08-06T09:55:49.888433 :madix!~madix@april/staff/madix PRIVMSG #april-admin :bot-cop ne semble pas fonctionner, il n'a pas kické tsp0
2018-08-06T09:57:44.280997 :agirbot!~agirbot@virola.april.org PRIVMSG #april-admin :Redmine: (https://agir.april.org/issues/3254): Anomalie #3254 (Nouveau): Les chans IRC de l'april sont victime d'un spam massif
2018-08-06T09:59:59.357140 :madix!~madix@april/staff/madix PRIVMSG #april-admin :mais est-ce que le bot a les droits de kick ?
2018-08-06T10:00:24.211295 :madix!~madix@april/staff/madix PRIVMSG #april-admin :bon, bbl
2018-08-06T10:03:32.367919 :ChanServ!ChanServ@services. MODE #april-admin +o QGuLL
2018-08-06T10:03:51.059298 :cpm_screen!~cpm@ip15.ip-145-239-49.eu PRIVMSG #april-admin :!list
2018-08-06T10:03:51.299869 :vivivi[1]!~vivivi@ns3.april.org PRIVMSG #april-admin :1 probleme enregistre
2018-08-06T10:03:51.380298 :vivivi[1]!~vivivi@ns3.april.org PRIVMSG #april-admin :[00] galang2018-08-06T10:23:12.872506 :hobana.freenode.net NOTICE * :*** Looking up your hostname...
2018-08-06T10:23:12.919941 :hobana.freenode.net NOTICE * :*** Checking Ident
2018-08-06T10:23:13.112192 :hobana.freenode.net NOTICE * :*** Found your hostname
2018-08-06T10:23:18.874129 :hobana.freenode.net NOTICE * :*** No Ident response
2018-08-06T10:23:18.874728 :hobana.freenode.net 001 bot-cop :Welcome to the freenode Internet Relay Chat Network bot-cop
:hobana.freenode.net 002 bot-cop :Your host is hobana.freenode.net[81.18.73.123/6667], running version ircd-seven-1.1.5
:hobana.freenode.net 003 bot-cop :This server was created Wed Jan 24 2018 at 21:31:07 UTC
:hobana.freenode.net 004 bot-cop hobana.freenode.net ircd-seven-1.1.5 DOQRSZaghilopswz CFILMPQSbcefgijklmnopqrstvz bkloveqjfI
:hobana.freenode.net 005 bot-cop CHANTYPES=# EXCEPTS INVEX CHANMODES=eIbq,k,flj,CFLMPQScgimnprstz CHANLIMIT=#:120 PREFIX=(ov)@+ MAXLIST=bqeI:100 MODES=4 NETWORK=freenode KNOCK STATUSMSG=@+ CALLERID=g :are supported by this server
:hobana.freenode.net 005 bot-cop CASEMAPPING=rfc1459 CHARSET=ascii NICKLEN=16 CHANNELLEN=50 TOPICLEN=390 ETRACE CPRIVMSG CNOTICE DEAF=D MONITOR=100 FNC TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,PRIVMSG:4,NOTICE:4,ACCEPT:,MONITOR: :are supported by this server
:hobana.freenode.net 005 bot-cop EXTBAN=$,ajrxz WHOX CLIENTVER=3.0 SAFELIST ELIST=CTU :are supported by this server
:hobana.freenode.net 251 bot-cop :There are 111 users and 91191 invisible on 34 servers
:hobana.freenode.net 252 bot-cop 32 :IRC Operators online
:hobana.freenode.net 253 bot-cop 56 :unknown connection(s)
:hobana.freenode.net 254 bot-cop 51076 :channels formed
:hobana.freenode.net 255 bot-cop :I have 4797 clients and 1 servers
:hobana.freenode.net 265 bot-cop 4797 5577 :Current local users 4797, max 5577
:hobana.freenode.net 266 bot-cop 91302 96965 :Current global users 91302, max 96965
:hobana.freenode.net 250 bot-cop :Highest connection count: 5578 (5577 clients) (889739 connections received)
:hobana.freenode.net 375 bot-cop :- hobana.freenode.net Message of the Day -
:hobana.freenode.net 372 bot-cop :- Welcome to hobana.freenode.net in Bucharest, Romania! Thank
:hobana.freenode.net 372 bot-cop :- you to RCS-RDS for sponsoring this server!
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Ion Hobana (1931-2011) was a Romanian science fiction writer,
:hoba
2018-08-06T10:23:18.874857 na.freenode.net 372 bot-cop :- literary critic and ufologist. Ion Hobana is a literary
:hobana.freenode.net 372 bot-cop :- pseudonym, the writer's real name being Aurelian Manta Rosie.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Welcome to freenode - supporting the free and open source
:hobana.freenode.net 372 bot-cop :- software communities since 1998.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- By connecting to freenode you indicate that you have read and
:hobana.freenode.net 372 bot-cop :- accept our policies and guidelines as set out on https://freenode.net
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- In the event that you observe behaviour that contravenes our policies,
:hobana.freenode.net 372 bot-cop :- please notify a volunteer staff member via private message, or send us an
:hobana.freenode.net 372 bot-cop :- e-mail to complaints@freenode.net -- we will do our best to address the
:hobana.freenode.net 372 bot-cop :- situation within a reasonable period of time, and we may request further
:hobana.freenode.net 372 bot-cop :- information or, as appropriate, involve other parties such as channel operators
:hobana.freenode.net 372 bot-cop :- Group Contacts representing an on-topic group.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- freenode runs an open proxy scanner.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- If you are looking for assistance, you will be able to find a list of
:hobana.freenode.net 372 bot-cop :- volunteer staff using the '/who freenode/staff/*' command, and you may
:hobana.freenode.net 372 bot-cop :- message any of us at any time. Please note that freenode predominantly
:hobana.freenode.net 372 bot-cop :- provides assistance via private message, and while we have a network
:hobana.freenode.net 372 bot-cop :- channel the primary venue for support requests is via private me
2018-08-06T10:23:18.875303 ssage to
:hobana.freenode.net 372 bot-cop :- a member of the volunteer staff team.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- From time to time, volunteer staff may send server-wide notices relating to
:hobana.freenode.net 372 bot-cop :- the project, or the communities that we host. The majority of such notices
:hobana.freenode.net 372 bot-cop :- will be sent as wallops, and you can '/mode <yournick> +w' to ensure that you
:hobana.freenode.net 372 bot-cop :- do not miss them. Important messages relating to the freenode project, including
:hobana.freenode.net 372 bot-cop :- notices of upcoming maintenance and other scheduled downtime will be issued as
:hobana.freenode.net 372 bot-cop :- global notices.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Representing an on-topic project? Don't forget to register, more information
:hobana.freenode.net 372 bot-cop :- can be found on the https://freenode.net website under "Group Registration".
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- freenode organises an annual conference, and we would like to extend our
:hobana.freenode.net 372 bot-cop :- thanks to the attendees, exhibitors and speakers who made freenode #live 2017
:hobana.freenode.net 372 bot-cop :- possible. And of course, our g
2018-08-06T10:23:18.921700 enerous sponsors: Bytemark, Canonical (Ubuntu),
:hobana.freenode.net 372 bot-cop :- Falanx Cyber Security, Private Internet Access and Yubico for footing the bill.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Thank you also to our server sponsors for the sustained support in keeping the
:hobana.freenode.net 372 bot-cop :- network going for close to two decades.
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- freenode #live returns to Bristol, UK on November 3rd-4th 2018. Our Call for
:hobana.freenode.net 372 bot-cop :- Proposals is live at https://freenode.live and open until July 31, 2018. If
:hobana.freenode.net 372 bot-cop :- you are interested in sponsoring this event, please send an e-mail to
:hobana.freenode.net 372 bot-cop :- sponsor@freenode.live
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :- Thank you for using freenode!
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 372 bot-cop :-
:hobana.freenode.net 376 bot-cop :End of /MOTD command.
:bot-cop MODE bot-cop :+Ri
2018-08-06T10:23:19.610463 :freenode-connect!frigg@freenode/utility-bot/frigg PRIVMSG bot-cop :VERSION
2018-08-06T10:23:19.657966 :freenode-connect!frigg@freenode/utility-bot/frigg NOTICE bot-cop :Due to the persistent ongoing spam, all new connections are being scanned for vulnerabilities. This will not harm your computer, and vulnerable hosts will be notified
2018-08-06T10:23:24.168010 :bot-cop!~bot-cop@virola.april.org JOIN #april-admin
2018-08-06T10:23:24.168906 :hobana.freenode.net 332 bot-cop #april-admin :Sysadmins de l'April - www.april.org - Astreinte été 2018 https://pad.april.org/p/Astreinte_SI_ete_2018
:hobana.freenode.net 333 bot-cop #april-admin madix!~madix@april/staff/madix 1531229501
:hobana.freenode.net 353 bot-cop = #april-admin :bot-cop louxor Casper_v2 guerby madix vincentxavier echarp QGuLL vivivi[1] heraclide ced117 edausq agirbot olasd theocrite APLU rh Taelia dachary cpm_screen gentux Sp4rKy
:hobana.freenode.net 366 bot-cop #april-admin :End of /NAMES list.
:bot-cop!~bot-cop@virola.april.org JOIN #april
:hobana.freenode.net 332 bot-cop #april :April - Promouvoir et défendre le Logiciel Libre - Vous avez des questions, vous voulez aider ? N'hésitez pas à poser des questions, donner votre avis… - Revue hebdomadaire chaque vendredi à 12h http://apr1.org/bU
:hobana.freenode.net 333 bot-cop #april madix!~madix@april/staff/madix 1485622773
:hobana.freenode.net 353 bot-cop @ #april :bot-cop flo2marsnet Oleti oumph Fauve Ycarus _aeris_ louxor alexandrie GNUtoo nijaba freetux Adri2000 Roux guerby isAAAc_ geb madix vincentxavier _khrys_ Ellyan echarp irina11y toony pierre_bear _Myriam_ april-supybot` mathieui hanitles- floreal xnx thunderscore KippiX lool Emenems z4c_ feth sparty_ myckeul_ JYS_ mat_ heraclide ced117 jaster pfreund McPeter LowMemory Cadmos eda
2018-08-06T10:23:24.215502 usq eseyman gnunux Mindiell paulk-leonov gtom Aerya Thom1 y0ur1 Aime38_ dino
:hobana.freenode.net 353 bot-cop @ #april :zoobab nahuel Meriem albanc gibus barzi Daerist hackunoichi _domi_ Akahyperion[m] GoldenBear spiwit iderrick_ QGuLL lucas_ coucouf olasd spiderweak theocrite__ amj theocrite bev_ vinci APLU fatalerrors rh Taelia peb` Nazral dachary minimaxwell cpm_screen baud gentux @ChanServ loddfafnir Porkepix tbmb @Sp4rKy sebl Siltaar Roux_screen boblefrag
:hobana.freenode.net 366 bot-cop #april :End of /NAMES list.
2018-08-06T10:23:24.363823 :services. 328 bot-cop #april :http://www.april.org/
2018-08-06T10:24:17.499244 :cpm_screen!~cpm@ip15.ip-145-239-49.eu PRIVMSG #april-admin :rh: bonjour Romain, prêt pour ta semaine d'astreinte adminsys ? :D
2018-08-06T10:25:30.604685 :horse!~horse@103.208.59.160 JOIN #april-admin
2018-08-06T10:25:34.764099 :horse!~horse@103.208.59.160 PRIVMSG #april-admin :After the acquisition by Private Internet Access, Freenode is now being used to push ICO scams https://www.coindesk.com/handshake-revealed-vcs-back-plan-to-give-away-100-million-in-crypto/
2018-08-06T10:25:39.783107 :horse!~horse@103.208.59.160 PRIVMSG #april-admin :"All told, Handshake aims to give $250 worth of its tokens to *each* user of the websites the company has partnerships with – GitHub, the P2P Foundation and *FREENODE*, a chat channel for peer-to-peer projects. As such, developers who have existing accounts on each could receive up to $750 worth of Handshake tokens."
2018-08-06T10:25:43.663077 :horse!~horse@103.208.59.160 PRIVMSG #april-admin :Handshake cryptocurrency scam is operated by Andrew Lee (276-88-0536), the fraudster in chief at Private Internet Access which now owns Freenode
2018-08-06T10:25:48.342294 :horse!~horse@103.208.59.160 PRIVMSG #april-admin :Freenode is registered as a "private company limited by guarantee without share capital" performing "activities of other membership organisations not elsewhere classified", with Christel and Andrew Lee (PIA's founder) as officers, and Andrew Lee having the majority of voting rights
2018-08-06T10:25:51.953131 :horse!~horse@103.208.59.160 PRIVMSG #april-admin :Even christel, the freenode head of staff is actively peddling this scam https://twitter.com/christel/status/1025089889090654208
2018-08-06T10:25:55.701807 :horse!~horse@103.208.59.160 PRIVMSG #april-admin :Don't support freenode and their ICO scam, switch to a network that hasn't been co-opted by corporate interests. OFTC or efnet might be a good choice. Perhaps even https://matrix.org/
2018-08-06T10:26:30.584007 :horse!~horse@103.208.59.160 QUIT :Remote host closed the connection
2018-08-06T10:28:34.270329 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :ça ne marche pas mieux :(
2018-08-06T10:28:37.416816 :mhep_!~Thunderbi@oisux.weblib.re JOIN #april
2018-08-06T10:29:40.465114 :nairwolf!~nairwolf@unaffiliated/nairwolf JOIN #april
2018-08-06T10:31:44.677107 :Alistair29!~Alistair@190-204-185-80.dyn.dsl.cantv.net JOIN #april-admin
2018-08-06T10:31:46.614053 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :cpm_screen: que penses tu de passer ce chan en modéré avec une autorisation de parler automatiquement donnée aux visiteurs après 30s ?
2018-08-06T10:31:48.582896 :Alistair29!~Alistair@190-204-185-80.dyn.dsl.cantv.net PRIVMSG #april-admin :After the acquisition by Private Internet Access, Freenode is now being used to push ICO scams https://www.coindesk.com/handshake-revealed-vcs-back-plan-to-give-away-100-million-in-crypto/
2018-08-06T10:31:53.694084 :Alistair29!~Alistair@190-204-185-80.dyn.dsl.cantv.net PRIVMSG #april-admin :"All told, Handshake aims to give $250 worth of its tokens to *each* user of the websites the company has partnerships with – GitHub, the P2P Foundation and *FREENODE*, a chat channel for peer-to-peer projects. As such, developers who have existing accounts on each could receive up to $750 worth of Handshake tokens."
2018-08-06T10:31:57.299027 :Alistair29!~Alistair@190-204-185-80.dyn.dsl.cantv.net PRIVMSG #april-admin :Handshake cryptocurrency scam is operated by Andrew Lee (276-88-0536), the fraudster in chief at Private Internet Access which now owns Freenode
2018-08-06T10:32:02.074777 :Alistair29!~Alistair@190-204-185-80.dyn.dsl.cantv.net PRIVMSG #april-admin :Freenode is registered as a "private company limited by guarantee without share capital" performing "activities of other membership organisations not elsewhere classified", with Christel and Andrew Lee (PIA's founder) as officers, and Andrew Lee having the majority of voting rights
2018-08-06T10:32:05.583427 :Alistair29!~Alistair@190-204-185-80.dyn.dsl.cantv.net PRIVMSG #april-admin :Even christel, the freenode head of staff is actively peddling this scam https://twitter.com/christel/status/1025089889090654208
2018-08-06T10:32:07.318305 :ChanServ!ChanServ@services. MODE #april-admin +o QGuLL
2018-08-06T10:32:09.530880 :Alistair29!~Alistair@190-204-185-80.dyn.dsl.cantv.net PRIVMSG #april-admin :Don't support freenode and their ICO scam, switch to a network that hasn't been co-opted by corporate interests. OFTC or efnet might be a good choice. Perhaps even https://matrix.org/
2018-08-06T10:32:09.827562 :QGuLL!~QGuLL@april/member/QGuLL MODE #april-admin +b *!*@190-204-185-80.dyn.dsl.cantv.net
2018-08-06T10:32:11.849447 :QGuLL!~QGuLL@april/member/QGuLL KICK #april-admin Alistair29 :Alistair29
2018-08-06T10:32:13.867715 :ChanServ!ChanServ@services. MODE #april-admin -o QGuLL
2018-08-06T10:34:09.563608 :benj!~user@194.140-14-84.ripe.coltfrance.com JOIN #april
2018-08-06T10:34:09.652326 :benj!~user@194.140-14-84.ripe.coltfrance.com JOIN #april-admin
2018-08-06T10:34:09.756701 :benj!~user@194.140-14-84.ripe.coltfrance.com QUIT :Changing host
2018-08-06T10:34:09.803888 :benj!~user@april/member/benj JOIN #april-admin
:benj!~user@april/member/benj JOIN #april
2018-08-06T10:35:04.696209 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :benj: copbot marche plus ici
2018-08-06T10:35:32.152869 :benj!~user@april/member/benj PRIVMSG #april-admin :fentanyl
2018-08-06T10:35:35.213588 :cpm_screen!~cpm@ip15.ip-145-239-49.eu PRIVMSG #april-admin :QGuLL: voui, avec un message dans l'intro
2018-08-06T10:35:35.391703 :benj!~user@april/member/benj PRIVMSG #april-admin :il est plus op
2018-08-06T10:35:40.967556 :ChanServ!ChanServ@services. MODE #april-admin +o benj
2018-08-06T10:35:48.023485 :ChanServ!ChanServ@services. MODE #april +o benj
2018-08-06T10:35:51.353503 :benj!~user@april/member/benj MODE #april +o bot-cop
2018-08-06T10:35:53.697120 :benj!~user@april/member/benj MODE #april-admin +o bot-cop
2018-08-06T10:36:00.201519 :benj!~user@april/member/benj PRIVMSG #april-admin :c'est psa fini le spam ? :(
2018-08-06T10:38:08.216834 :Marie-Odile!~marie-odi@april/member/Marie-Odile JOIN #april
2018-08-06T10:38:45.110075 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :c'est pire
2018-08-06T10:39:14.236787 :QGuLL!~QGuLL@april/member/QGuLL PRIVMSG #april-admin :ah oui j'ai rebooté le bot après avoir ajouté un autre mot (scams) mais j'ai oublié de l'oper
2018-08-06T10:39:18.175285 :benj!~user@april/member/benj PRIVMSG #april-admin :boarg
2018-08-06T10:39:34.490450 :benj!~user@april/member/benj PRIVMSG #april-admin :les admins n'ont pas trouvé de solution ?
2018-08-06T10:39:49.936425 :cpm_screen!~cpm@ip15.ip-145-239-49.eu PRIVMSG #april-admin :j'espérai que l'équipe de Freenode trouverait une solution ce week-end…
2018-08-06T10:39:57.140225 :cpm_screen!~cpm@ip15.ip-145-239-49.eu PRIVMSG #april-admin :s
2018-08-06T10:39:57.722082 :QGuLL!~QGuLL@apr

0
bots/copbot/copbot.py → copbot.py

0
bots/copbot/copbot.sh → copbot.sh

Loading…
Cancel
Save