This commit is contained in:
elmo-space 2018-09-01 21:41:18 +02:00
parent 6019fc92d5
commit 1ed8a11f97
2 changed files with 1 additions and 26 deletions

View File

@ -26,5 +26,4 @@ But overall it is a pretty fun thing and is heavily used on the IRC server that
- All http links are parsed and the html title is printed out if one is found - All http links are parsed and the html title is printed out if one is found
- The bot automatically parses all twitter links and prints out the full tweet and account name. - The bot automatically parses all twitter links and prints out the full tweet and account name.
- The blog of the german blogger "fefe" (Felix von Leitner - blog.fefe.de) is crawled every five mins. and new Posts are automatically printed out with a link to the post - The blog of the german blogger "fefe" (Felix von Leitner - blog.fefe.de) is crawled every five mins. and new Posts are automatically printed out with a link to the post
- eFukt is crawled every 10 mins. and a message is generated on new videos (it also triggers another bot in our network)

26
bert.py
View File

@ -23,7 +23,6 @@ import random
from flask import Flask, request from flask import Flask, request
from nslookup import nslookup from nslookup import nslookup
import rss import rss
import efukt
version = "v0.8" version = "v0.8"
@ -564,18 +563,6 @@ def fefe_check():
sleep(300) sleep(300)
def efukt_check():
while True:
try:
data = efukt.check()
if not data == None:
say(chan, y+data[0]+g+" - "+r+data[1])
say(chan, data[2]+" !f0ck")
except Exception as err:
print("Error in efukt checker! - "+str(err))
sleep(600)
def gc_cycle(): def gc_cycle():
while True: while True:
try: try:
@ -603,14 +590,6 @@ class fefe_thread(threading.Thread):
print("Starting fefe thread...") print("Starting fefe thread...")
fefe_check() fefe_check()
class efukt_thread(threading.Thread):
def __init__(self, threadID):
threading.Thread.__init__(self)
self.threadID = threadID
def run(self):
print("Starting efukt thread...")
efukt_check()
class gc_thread(threading.Thread): class gc_thread(threading.Thread):
def __init__(self, threadID): def __init__(self, threadID):
threading.Thread.__init__(self) threading.Thread.__init__(self)
@ -627,14 +606,11 @@ def main():
api = tweepy.API(auth) api = tweepy.API(auth)
thread_command = command_thread(1) thread_command = command_thread(1)
thread_fefe = fefe_thread(2) thread_fefe = fefe_thread(2)
thread_efukt = efukt_thread(3) thread_gc = gc_thread(3)
thread_gc = gc_thread(4)
thread_command.start() thread_command.start()
sleep(2) sleep(2)
thread_fefe.start() thread_fefe.start()
sleep(2) sleep(2)
thread_efukt.start()
sleep(2)
thread_gc.start() thread_gc.start()