From c3c700d2425f7dd774cb308e189593277d3c3bc6 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Fri, 23 Jul 2021 18:32:36 -0400 Subject: [PATCH] added "ea" array to config file, restricted a command to users in that list or bot owners --- the_prestige.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/the_prestige.py b/the_prestige.py index eabad4e..6c4a4fc 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -983,6 +983,9 @@ class LeagueSetPlayerModifiersCommand(Command): template = "m;setplayermods [league name]\n[team name]\n[player name]\n4 numbers, seperated by a space, for batting pitching baserunning defense" description = "Set a pack of modifiers to a specific player in your league. Commissioners only." + def isauthorized(self, user): + return user.id in config()["owners"] + config()["ea"] + async def execute(self, msg, command, flags): if league_exists(command.split("\n")[0].strip()): try: @@ -1702,6 +1705,9 @@ def config(): "owners" : [ 0000 ], + "ea" : [ + 0000 + ], "prefix" : ["m;", "m!"], "simmadome_url" : "", "soulscream channel id" : 0,