Hello iv made a Ticket Bot and i wanted to make a Counter for the Tickets but when a new ticket gets Created the counter doesn't go up!? and i dont know how to do it so i need you Guys.
@bot.event
async def on_ready():
print(f'Connected to bot: {bot.user.name}')
print(f'Bot ID: {bot.user.id}')
category = bot.get_channel(966773969355165746)
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=f'Tickets: {len(category.text_channels)}'))
source https://stackoverflow.com/questions/71973493/how-can-i-update-my-bot-status-after-a-new-channel-was-created
Comments
Post a Comment