From: CMDR furrycat Date: Wed, 9 Jan 2019 10:35:45 +0000 (+0000) Subject: More easily assign roles with spaces. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=310212cd97c13883528f6d47a7a516be64ac072a;p=furrycat%2Fcatbot.git More easily assign roles with spaces. --- diff --git a/plugin/role/role.py b/plugin/role/role.py index f2fe270..3690140 100644 --- a/plugin/role/role.py +++ b/plugin/role/role.py @@ -289,7 +289,7 @@ class Role(DBConnection): await bot.say(message.channel, 'role?') return - role = await self.find_role(message, args[0]) + role = await self.find_role(message, ' '.join(args)) if not role: return @@ -315,7 +315,7 @@ class Role(DBConnection): await bot.say(message.channel, 'role?') return - role = await self.find_role(message, args[0]) + role = await self.find_role(message, ' '.join(args)) if not role: return