Glitch.com网站用Python

2024-04-26 00:50:40 发布

您现在位置:Python中文网/ 问答频道 /正文

如何在上创建和使用Python3.7Glitch.com? 我创建了一个项目。默认的Python版本是旧的。


我使用这些文件在出现故障时运行Python:
  • 你知道吗主.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")
    

  • 开始.sh
    python main.py
    

  • 需求.txt
    discord.py==1.2.3
    
    

    你知道吗


  • Tags: 文件项目frompyimport版本combot