I'm currently working on a bot that allows someone at the console to (sort of) communicate with people on discord through the bot. However I've come across a problem. The input command doesn't work. I don't really care that it stops the code in its tracks, as I'll be self hosting anyway, and will have to be at the terminal to actually use the bot. The issue I'm having is that the input isn't working. Nothing is displayed in the terminal for the input's message. Here is my code if it helps:
enable = True
@client.event
async def on_message(ctx):
global previousGld
if previousGld != ctx.guild:
print(f"{ctx.author}- {ctx.content} \n From- {ctx.guild} \n")
else:
print(f"{ctx.author}- {ctx.content} \n")
if enable == True:
res = input("Enter response:")
if res != "n":
await ctx.send(f"I say: {res}")
previousGld = ctx.guild