[CODE]# bot.py
import discord
import os
import random
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
TOKEN = (os.getenv('token'))
intents = discord.Intents.all()
intents.message_content = True
bot = commands.Bot(command_prefix='.',intents=intents)
@bot.command(name='rastgelefilm')
async def rastgelefilm(ctx):
with open("movies.txt") as f:
lines = f.readlines()
print (random.choice(lines))
response = random.choice('movies.txt')
await ctx.send(response)
bot.run(TOKEN)