Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
maybe fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Oct 6, 2020
1 parent 6a43c15 commit 918d250
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions gdpys/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from config import user_config
from exceptions import GDPySCommandError
from objects.levels import Level, Rating, DailyLevel
global name
global permission

COMMANDS = {}

Expand Down Expand Up @@ -68,13 +70,8 @@ async def get_daily_level(self) -> DailyLevel:
# Commands #
############################

def command(self, _name: str=None, _permission: Permissions=None):
def command(self, name: str=None, permission: Permissions=None):
"""Decorator to create commands"""
global name
global permission

name = _name
permission = _permission
def decorator(coro):
if not coro.__code__.co_flags & 0x0080 or getattr(coro, '_is_coroutine', False):
raise Exception("Function is not a coroutine function!")
Expand Down

0 comments on commit 918d250

Please sign in to comment.