k4j
February 4, 2022, 5:33am
1
they add ths new kind secret variable
im try make discord bot pls help
Hi @k4j !
Welcome to the forum!
It looks like you are going through the freeCodeCamp tutorial on how to build a discord bot with python.
If so, then you can read through my post on how to add environment variables.
Read this post if you are watching the Code a Discord Bot tutorial by FCC and don’t know how to setup your environment variables in replit.
A few months ago, Replit changed how to add environment variables.
The suggestions from the video will not work.
Here is what you do.
Use this starter code from discord.py docs
This is the exact same code from the video.
You can just copy it.
import discord
client = discord.Client()
@client.event
async def on_ready():
print('We have logged in as {…
system
Closed
November 12, 2022, 2:07am
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.