Reputation: 21
I'm trying to get the bot's name to change every time it runs. I've check the discord.py docs but nothing there has been of use and none of them throw up any errors. Any ideas?
Has perms 'admin' and 'change nickname'
import discord
from discord.ext import commands
from discord.ext.commands import bot
bot = commands.Bot(command_prefix=PREFIX)
bot.remove_command('help')
@bot.event
async def on_ready():
await bot.user.edit(nick="New Nickname")
bot.run(TOKEN)
Upvotes: 1
Views: 1151