bot icon indicating copy to clipboard operation
bot copied to clipboard

Show new timestamp in confirmation embed after editing reminder duration

Open vivekashok1221 opened this issue 2 years ago • 6 comments

image

When setting a reminder with the !remind command, the embed contains a timestamp which states the time at which the reminder will arrive. Same should be done for the embed you get when you edit a reminder, i.e, a timestamp of the newly edited time should be added to the embed.

Anyone can implement.

vivekashok1221 avatar May 08 '22 05:05 vivekashok1221

If possible I would like to work on this!

mtkumar123 avatar May 09 '22 13:05 mtkumar123

If possible I would like to work on this!

I've assigned you. Check out our contributing page if you haven't already, and feel free to ask if you have any questions!

wookie184 avatar May 10 '22 19:05 wookie184

Hello! Sorry I am having trouble getting the bot to start, I believe I followed all the instructions. Here is the traceback:

Found `config.yml` file, loading constants from it.
2022-05-11 10:47:25 | botcore.utils._monkey_patches | DEBUG | Patching send_typing, which should fix things breaking when Discord disables typing events. Stay safe!
2022-05-11 10:47:25 | discord.client | WARNING | PyNaCl is not installed, voice will NOT be supported
Traceback (most recent call last):
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 986, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1081, in create_connection
    transport, protocol = await self._create_connection_transport(
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1111, in _create_connection_transport
    await waiter
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/sslproto.py", line 528, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/sslproto.py", line 188, in feed_ssldata
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 944, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/manoj/Manoj/Python/OpenSource/bot/bot/__main__.py", line 73, in main
    await _bot.start(constants.Bot.token)
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/discord/client.py", line 681, in start
    await self.login(token)
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/discord/client.py", line 542, in login
    data = await self.http.static_login(token.strip())
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/discord/http.py", line 557, in static_login
    data = await self.request(Route('GET', '/users/@me'))
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/discord/http.py", line 439, in request
    async with self.__session.request(method, url, **kwargs) as response:
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/aiohttp/client.py", line 535, in _request
    conn = await self._connector.connect(
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 542, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 907, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1206, in _create_direct_connection
    raise last_exc
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection
    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)')]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/manoj/Manoj/Python/OpenSource/bot/bot/__main__.py", line 77, in <module>
    asyncio.run(main())
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/Users/manoj/Manoj/Python/OpenSource/bot/bot/__main__.py", line 73, in main
    await _bot.start(constants.Bot.token)
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/discord/client.py", line 259, in __aexit__
    await self.close()
  File "/Users/manoj/Manoj/Python/OpenSource/bot/.venv/lib/python3.9/site-packages/botcore/_bot.py", line 280, in close
    if self.stats._transport:
AttributeError: 'NoneType' object has no attribute '_transport'

mtkumar123 avatar May 11 '22 14:05 mtkumar123

@mtkumar123 Could you post this in the #dev-contrib channel on the Discord server? Questions like that are better to post in that channel than on GitHub.

DMFriends avatar May 11 '22 14:05 DMFriends

Hey @mtkumar123, were you able to resolve this, and are you still looking to work on the issue?

TizzySaurus avatar Jul 14 '22 21:07 TizzySaurus

Hey I'll reassign this issue to Tizzy now. Feel free to reach out if you want to discuss this, or pick up another issue from the tracker.

HassanAbouelela avatar Jul 25 '22 17:07 HassanAbouelela