Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions extensions/economy.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,8 +13,10 @@

economy_plugin = lightbulb.Plugin("Economy")


# Helper methods
class EconomyHelperMethods:

async def __init__(self, db):
self.db = db
db.initialise()
Expand All @@ -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