omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Is it possible to get discord.py up and running on Pythonista

    Pythonista
    discord.py pythonista pythonista 3
    3
    3
    1561
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • etanemuway
      etanemuway last edited by

      I tried for a couple hours yesterday to get a discord bot I made on my pc in PyCharm up and running on Pythonista, however I got stuck with errors saying either 1) Cannot connect to host discord.com:433 ssl:True... OR if I run it a second time after that error 2) event loop is closed. So with that said, has anyone else ever gotten a discord bot running on Pythonista? Any help would be appreciated as Im still pretty new to python and just started tinkering with Pythonista yesterday, cheers!

      1 Reply Last reply Reply Quote 0
      • Penguin Master
        Penguin Master last edited by

        Hello! I had this problem. What you need to do is add this to the top of your code:import ssl ssl.match_hostname = lambda cert, hostname: True and for the other error, just close and open the app. Hope it works for you!

        bibiclancy 1 Reply Last reply Reply Quote 1
        • bibiclancy
          bibiclancy @Penguin Master last edited by bibiclancy

          @Penguin-Master happy wheels said:

          Hello! I had this problem. What you need to do is add this to the top of your code:import ssl ssl.match_hostname = lambda cert, hostname: True and for the other error, just close and open the app. Hope it works for you!

          Just what I needed, worked a treat, thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors