Skip to content
Discussion options

You must be logged in to vote

Yeah there is room for improvement i will only give a shallow code review i think others may chime in with other improvements

  1. You should not use requests in your bot for web requests this is blocking and will make your bot unresponsive until the web request is going through which means for a slow site this could take a long time. Use aiohttp instead since it is a discord.py dependency, best practice would be attaching a ClientSession to your bot instance at startup and then use it in the transformer through interaction.client.session see https://github.com/Rapptz/discord.py/blob/master/examples/advanced_startup.py#L87 for an example on how to do something like that (ignore the asyncpg st…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@ArcusCerebellumus
Comment options

@tailoric
Comment options

Answer selected by ArcusCerebellumus
@ArcusCerebellumus
Comment options

@tailoric
Comment options

@ArcusCerebellumus
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants