How to make my nezuko gif bot work? I entered both $nezuko and nezuko in my channel

import os
import discord
import requests
import json
from replit import db
from keep_alive import keep_alive

client = discord.Client()

async def on_ready():
  print('We have logged in as {0.user}'.format(client))

async def on_message(message):
  if == client.user:

  if message.content.startswith('$hello'):

my_secret = os.environ['encourage']

my_secret = os.environ['Demon']
# set the apikey and limit
# Demon = "notnotnotnotsecret" 

search_term = "$nezuko"

# get random results using default locale of EN_US
r = requests.get("" % (search_term, my_secret, lmt))

if r.status_code == 200:
  gifs = json.loads(r.content)
  gifs = None



Because nowhere in your code you are checking for a message starting with $nezuko and doing something in response
I understand, thanks.
I edited the code, still not working. I know there are many mistakes

The client event needs to go before

Also, I would not use my_secret for both your environment variables

And double check that your environment variables are actually correct

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.