undo/comment out async catbox library

This commit is contained in:
yuki 2025-10-08 02:17:23 -03:00
parent d649de8fb8
commit 321b2f5d39
5 changed files with 4 additions and 11 deletions

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "catbox_async_uploader"]
path = catbox_async_uploader
url = https://github.com/IlkoChw/catbox_async_uploader

6
bot.py
View file

@ -6,11 +6,11 @@ import pylast
import aiosqlite
from lastfmcollagegenerator.collage_generator import CollageGenerator
from catbox_async_uploader.catbox_async_uploader.core import CatboxAsyncUploader
# from catbox_async_uploader.catbox_async_uploader.core import CatboxAsyncUploader
class Bot(nerimity.Client):
"""Extended client class for extra functionality."""
def __init__(self, lastfm_api_key: str, lastfm_api_secret: str, catbox_hash: str,
def __init__(self, lastfm_api_key: str, lastfm_api_secret: str,
owner_id: int = None, db_file: str = "database.db",
*args, **kwargs):
super().__init__(*args, **kwargs)
@ -30,7 +30,7 @@ class Bot(nerimity.Client):
)
# initialize catbox client
self.catbox_uploader = CatboxAsyncUploader(userhash=catbox_hash)
# self.catbox_uploader = CatboxAsyncUploader(userhash=catbox_hash)
# database
self.db = None

@ -1 +0,0 @@
Subproject commit 7c9e9a9efc833a7f4f7a9641bd81f7ea4881396a

View file

@ -2,5 +2,3 @@ token = "NerimityTokenHere"
owner_id = 1234567890
api_key = "LastFmApiKeyHere"
api_secret = "LastFmApiSecretHere"
catbox_hash = "CatboxUserHashHere"

View file

@ -11,8 +11,7 @@ bot = bot.Bot(
token = config['token'],
owner_id = config['owner_id'],
lastfm_api_key = config['api_key'],
lastfm_api_secret = config['api_secret'],
catbox_hash = config['catbox_hash']
lastfm_api_secret = config['api_secret']
)
bot.load_commands("commands")