For some reason, I keep getting this error message, I can't understand it because everything I've seen online seems like my code should be working:
import discord #imports packages
import random
client = discord.Client(intents=discord.Intents.default())
def get_quote():
x = 0
f = open(r"C:\Users\natem\OneDrive\Documents\phil_quotes.txt", "r")
content = f.readlines()
for line in f:
x += 1
quote = (content[random.randint(0,x)])
f.close
return quote
@client.event
async def on_ready():
jeneral_channel = client.get_channel(Channel ID)
gospel = get_quote()
await jeneral_channel.send(message)
client.run("TOKEN")