really fixed it

This commit is contained in:
Sakimori 2021-03-06 12:27:27 -05:00
parent 130ef3bfef
commit 217713bbfb

View file

@ -549,7 +549,7 @@ class AssignOwnerCommand(Command):
return user.id in config()["owners"] return user.id in config()["owners"]
async def execute(self, msg, command): async def execute(self, msg, command):
if isauthorized(msg.author): if self.isauthorized(msg.author):
new_owner = msg.mentions[0] new_owner = msg.mentions[0]
team_name = command.strip().split("> ",1)[1] team_name = command.strip().split("> ",1)[1]
if db.assign_owner(team_name, new_owner.id): if db.assign_owner(team_name, new_owner.id):