from discord import FFmpegPCMAudio
from discord.ext import commands
import datetime
import discord
import time
bot = commands.Bot(command_prefix="!")
@bot.command()
async def BigBenStart(ctx):
hour = datetime.datetime.now().hour
channel = ctx.author.voice.channel
while True:
if hour != datetime.datetime.now().hour:
voice = await channel.connect()
source = FFmpegPCMAudio('Big Ben Audio.mp3')
player = voice.play(source)
time.sleep(37)
await ctx.voice_client.disconnect()
hour = datetime.datetime.now().hour
bot.run('ТУТ ТОКЕН')