cleanup
This commit is contained in:
@@ -30,7 +30,6 @@ hist_ts = []
|
|||||||
hist_flag = True
|
hist_flag = True
|
||||||
|
|
||||||
parser = None
|
parser = None
|
||||||
xmpp = None
|
|
||||||
|
|
||||||
def fetch_page(url):
|
def fetch_page(url):
|
||||||
logger('info', 'fetching page ' + url)
|
logger('info', 'fetching page ' + url)
|
||||||
@@ -111,11 +110,6 @@ def send_reply(message, msg_obj):
|
|||||||
print(message)
|
print(message)
|
||||||
else:
|
else:
|
||||||
msg_obj.reply(body=message).send()
|
msg_obj.reply(body=message).send()
|
||||||
# xmpp.send_message(
|
|
||||||
# mto=msg_obj['from'].bare,
|
|
||||||
# mbody=message,
|
|
||||||
# mtype=msg_obj['type']
|
|
||||||
# )
|
|
||||||
|
|
||||||
def ratelimit_touch(ignored=None): # FIXME: separate counters
|
def ratelimit_touch(ignored=None): # FIXME: separate counters
|
||||||
hist_ts.append(time.time())
|
hist_ts.append(time.time())
|
||||||
|
|||||||
Reference in New Issue
Block a user