diff --git a/extensions/economy.py b/extensions/economy.py index a00dff0..be963b3 100644 --- a/extensions/economy.py +++ b/extensions/economy.py @@ -1,8 +1,9 @@ # Imports +import os +import sys + import hikari import lightbulb -import sys -import os # Adds a path for importing database which requires a relative import # Thanks to https://stackoverflow.com/questions/7505988/importing-from-a-relative-path-in-python @@ -12,8 +13,10 @@ economy_plugin = lightbulb.Plugin("Economy") + # Helper methods class EconomyHelperMethods: + async def __init__(self, db): self.db = db db.initialise() @@ -33,10 +36,12 @@ async def get_bank_data(): async def delete_account(): pass + # Commands @economy_plugin.command -@lightbulb.command('balance', 'Returns the balance of the user',aliases = ['bal']) +@lightbulb.command("balance", + "Returns the balance of the user", + aliases=["bal"]) @lightbulb.implements(lightbulb.PrefixCommand, lightbulb.SlashCommand) async def balance(ctx): pass -