Starting Up Code

I am pretty new to glitch and while the answer is probably obvious, how do I get a project running? Code is in and everything but the dis bot is not online

Hello, do you have anything in your logs?

(tools → logs)

Serving at ttp://3511e7e3e054:3000, ttp://127.0.0.1:3000, ttp://172.17.0.71:3000

Sent the links without a h because I can’t as a new user

That’s it though

Can you open the terminal and run curl -I https://discordapp.com/api/v7/gateway?


problems with copy paste. Sorry I have to do this in a screenshot

Ahh ok I see what happened. You need to add a few more things to your project if it is in Python. Have a look at this:

So at the beginning of my code I run Import python bot.py?

You will need to add a few files:

start.sh

python bot.py

requirements.txt

(place what you installed with pip here)

That should do the trick!

My code starts with:
import discord
from discord.ext import commands
import datetime
bot = commands.Bot(command_prefix=’*’)

So it needs to be
start.sh
python bot.py
requirements.txt
(place what you installed with pip here)
import discord
from discord.ext import commands
import datetime
bot = commands.Bot(command_prefix=’*’)

Second, I do not know what pip is

Pip is python’s package manager.

I do see you are importing some things, you might want to read into pip and how it works.

Most of the code in there is not mine. I ordered the code from another service so I do not know that much about it. What can I do to get it working?

^^^^