Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/isida/vi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiSabler <dissy@ya.ru>2017-02-22 23:06:27 +0300
committerdiSabler <dissy@ya.ru>2017-02-22 23:06:27 +0300
commitbe9c42fb7e302690824e30044a4f9f8253cd7cd7 (patch)
tree1e75fee8f67370ada8aa280262d60e7f59125599 /kernel.py
parent5477591a6d9ef090c2fb2bb4c9d6f56d012b261e (diff)
fix: remove unused files
Diffstat (limited to 'kernel.py')
-rw-r--r--kernel.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel.py b/kernel.py
index 199cda7..73afcd7 100644
--- a/kernel.py
+++ b/kernel.py
@@ -420,7 +420,7 @@ def remove_sub_space(t):
# Send message
def send_msg(raw_in, msg):
global LAST_MESSAGE, TIMEOUT
- MSG = { 'chat_id': raw_in['message']['chat']['id'],
+ MSG = { 'chat_id': raw_in['message']['chat'].get('id',''),
'text': msg,
'parse_mode': 'HTML' }
request = requests.post(API_URL % 'sendMessage', data=MSG)
@@ -740,6 +740,8 @@ if is_win32:
win_console_color = ctypes.windll.Kernel32.GetStdHandle(ctypes.c_ulong(0xfffffff5))
pprint('-'*50,'blue')
+pprint('%s %s' % (botName, get_bot_version()), 'bright_cyan')
+pprint('-'*50,'blue')
pprint('*** Init enviroment succed', 'white')
# --- Config ----------------------------------------------------------------- #
@@ -781,6 +783,7 @@ for plugin in plug_list:
COMMANDS.append(tmp)
pprint('*** Total plugins: %s' % len(plug_list),'green')
pprint('-'*50,'blue')
+pprint('Let\'s begin!','white')
# --- Main cycle ------------------------------------------------------------- #
while True: