Making a Discord Bot in Python: How to make a toggle talk for a ChatBot
Clash Royale CLAN TAG #URR8PPP Making a Discord Bot in Python: How to make a toggle talk for a ChatBot I'm trying to make a discord ChatBot in Python and I seem to have come across a problem. I'm making a toggle on and off switch to make it talk but whenever I toggle that switch it says that 'talk' is not recognized as a command. I even tried making it @client.event instead of @client.command but it wouldn't work. Please help. import discord from discord.ext.commands import Bot from discord.ext import commands import asyncio import time Client = discord.Client() client = commands.Bot(command_prefix = ":") on_talk = False @client.event async def on_ready(): print("You can talk to me now!") @client.command async def talk(message): global on_talk if message.content.upper().startswith(":TALK"): on_talk = True if message.content.upper().startswith(":STOPTALK"): on_talk = False if on_talk == False: pr...