Change discord bot nickname (discord.py)
I have a simple issue that I'm yet to figure out, how can I change my bot's own nickname, because I want to display information instead of its nickname continuously.
tried this :
await bot.user.edit(username=price)
but this actually changes the username which is not allowed to be done multiple times.
async def status_update():
while True:
price = str(get_BTC_price(ws))
await bot.user.edit(username=price)
await asyncio.sleep (2)
@bot.event
async def on_ready():
bot.loop.create_task(status_update())
Thanks
from Recent Questions - Stack Overflow https://ift.tt/2J5Wi8N
https://ift.tt/eA8V8J
Comments
Post a Comment