pythonpython-3.7discord.pyglitch-framework

Glitch.com with Python


How to create and use Python 3.7 on Glitch.com? I created a project. Default Python version is old.


I used these files to run Python on Glitch:
  • main.py

    import discord
    from discord.ext import commands
    bot = commands.Bot(command_prefix="bot.")
    @bot.event
    async def on_ready():
       print("Bot ready!")
    bot.run("TOKEN_HERE")
    

  • start.sh

    python main.py
    

  • requiments.txt

    discord.py==1.2.3
    
    


  • Solution

  • Try changing python in start.sh to python3.

    They seem to have recently updated the default Python 3 version to 3.7.