'electron app limited by browser connection limit
We are thinking of building electron app for uploading files using aws node sdk. Completely new to electron. We want to utilize node sdk multi part feature. My question is will number of multipart connections limited by max number of connections browser can make? I know electron is not browser but container, wanted to get sense before venturing into it.
Solution 1:[1]
bot.get_channel method retrives channel from cache. You can properly do it only after on_ready event:
class Test(commands.Cog):
def __init__(self, bot):
self.bot = bot
@tasks.loop(minutes=1.0)
async def test1(self):
channel=bot.get_channel(927612404056092702)
channel.send(mensagem)
@commands.Cog.listener()
async def on_ready(self):
if not self.test1.is_running():
self.test1.start()
def setup(bot):
bot.add_cog(Test(bot))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ratery |
