From 60da60ce51743b969c1939082756ae5a2eb27754 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 21 Jul 2020 04:13:08 +0100 Subject: [PATCH] Using string.capwords --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 46a491dc..715bfaeb 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,7 @@ import asyncio import datetime import random +import string from contextlib import closing from typing import Optional @@ -139,7 +140,7 @@ async def on_message(message): await client.process_commands(message) -@tasks.loop(seconds=10, reconnect=True) +@tasks.loop(seconds=30, reconnect=True) async def change_status(): """Creating Custom Statuses as a Background Task""" @@ -160,7 +161,7 @@ async def change_status(): name=f"{len(client.users)} Weebs | Version : {get_version()}"), discord.Activity( type=discord.ActivityType.watching, - name=f"{member.name.capitalize()} | {guild.name} | Version : {get_version()}"), + name=f"{string.capwords(member.name.capitalize())} | {guild.name} | Version : {get_version()}"), discord.Game(name=f"~help | Version - {get_version()}") ] )