Update Telethon, ignore prod server's IP
This commit is contained in:
+1
-1
@@ -8,6 +8,6 @@ multidict==4.7.6
|
|||||||
pyaes==1.6.1
|
pyaes==1.6.1
|
||||||
pyasn1==0.4.8
|
pyasn1==0.4.8
|
||||||
rsa==4.7.2
|
rsa==4.7.2
|
||||||
Telethon==1.21.1
|
telethon==1.45.0
|
||||||
typing-extensions==3.7.4.3
|
typing-extensions==3.7.4.3
|
||||||
yarl==1.5.1
|
yarl==1.5.1
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ API_ID = 0
|
|||||||
API_HASH = ''
|
API_HASH = ''
|
||||||
API_TOKEN = ''
|
API_TOKEN = ''
|
||||||
DYNMAP_ADDRESS = 'http://domain.com:8123'
|
DYNMAP_ADDRESS = 'http://domain.com:8123'
|
||||||
|
THIS_SERVER_IP = ''
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ async def main():
|
|||||||
icon = emojis[md5(name) % len(emojis)]
|
icon = emojis[md5(name) % len(emojis)]
|
||||||
icon = settings.CUSTOM_EMOJIS.get(name, icon)
|
icon = settings.CUSTOM_EMOJIS.get(name, icon)
|
||||||
message = '{} <{}> {}'.format(icon, name, update['message'])
|
message = '{} <{}> {}'.format(icon, name, update['message'])
|
||||||
|
if name == settings.THIS_SERVER_IP: continue
|
||||||
if message == last_msg: continue
|
if message == last_msg: continue
|
||||||
|
|
||||||
logging.info('[RECV] ' + message)
|
logging.info('[RECV] ' + message)
|
||||||
|
|||||||
Reference in New Issue
Block a user