Traceback (most recent call last):


 "miya.py", line 30, in <module>

rtm_client.start()


 "/home/john/.local/lib/python3.6/site-packages/slack/rtm/client.py", line 197, in start

return self._event_loop.run_until_complete(future)


 "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete

return future.result()


 "/home/john/.local/lib/python3.6/site-packages/slack/rtm/client.py", line 339, in _connect_and_read

await self._read_messages()


 "/home/john/.local/lib/python3.6/site-packages/slack/rtm/client.py", line 390, in _read_messages

await self._dispatch_event(event, data=payload)


 "/home/john/.local/lib/python3.6/site-packages/slack/rtm/client.py", line 440, in _dispatch_event

self._execute_in_thread(callback, data)


 "/home/john/.local/lib/python3.6/site-packages/slack/rtm/client.py", line 465, in _execute_in_thread

future.result()


 "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result

return self.__get_result()


 "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result

raise self._exception


 "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)


 "miya.py", line 12, in say_hello

if 'Hello' in data['text']:
KeyError: 'text'

Traceback (most recent call last):


 "c:\users\dell\appdata\local\programs\python\python39\lib\site.py", line 169, in addpackage

exec(line)


 "<string>", line 1, in <module>


 "c:\users\dell\appdata\local\programs\python\python39\lib\importlib\util.py", line 2, in <module>

from . import abc


 "c:\users\dell\appdata\local\programs\python\python39\lib\importlib\abc.py", line 17, in <module>

from typing import Protocol, runtime_checkable


 "c:\users\dell\appdata\local\programs\python\python39\lib\typing.py", line 26, in <module>

import re as stdlib_re
# Avoid confusion with the re we export.


 "c:\users\dell\appdata\local\programs\python\python39\lib\re.py", line 145, in <module>

class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
