File size: 493 Bytes
2362a2a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import sys
import os

# Add project root to sys.path
sys.path.append(os.getcwd())

from QueenNoxi.modules.disable import DisableAbleCommandHandler

print(f"DisableAbleCommandHandler: {DisableAbleCommandHandler}")

def test_func(client, message):
    pass

try:
    decorator = DisableAbleCommandHandler(["notes", "saved"])
    print(f"Decorator created: {decorator}")
    wrapped = decorator(test_func)
    print(f"Wrapped function: {wrapped}")
except Exception as e:
    print(f"Error: {e}")