migration related
This commit is contained in:
parent
b3f0e084ce
commit
046ad4f94a
@ -136,10 +136,10 @@ class Meme(commands.Cog):
|
||||
def __init__(self, bot: Havoc) -> None:
|
||||
self.bot: Havoc = bot
|
||||
self.stats_db_path: str = os.path.join(
|
||||
"/usr/local/share", "sqlite_dbs", "stats.db"
|
||||
"/mnt/data/share", "sqlite_dbs", "stats.db"
|
||||
)
|
||||
self.memedb_path: str = os.path.join(
|
||||
"/usr/local/share", "sqlite_dbs", "meme.db"
|
||||
"/mnt/data/share", "sqlite_dbs", "meme.db"
|
||||
)
|
||||
self.meme_choices: list = []
|
||||
self.meme_counter: int = 0
|
||||
|
@ -108,7 +108,7 @@ class Radio(commands.Cog):
|
||||
"""
|
||||
logging.info("Detected VC not playing... playing!")
|
||||
source: discord.FFmpegAudio = discord.FFmpegOpusAudio(
|
||||
self.STREAM_URL, before_options="-timeout 3000000"
|
||||
self.STREAM_URL
|
||||
)
|
||||
vc.play( # type: ignore
|
||||
source,
|
||||
|
@ -60,10 +60,10 @@ class Sing(commands.Cog):
|
||||
"**Error**: No song specified, no activity found to read."
|
||||
)
|
||||
|
||||
await ctx.respond(
|
||||
"*Searching...*",
|
||||
ephemeral=True
|
||||
) # Must respond to interactions within 3 seconds, per Discord
|
||||
await ctx.respond(
|
||||
"*Searching...*",
|
||||
ephemeral=True
|
||||
) # Must respond to interactions within 3 seconds, per Discord
|
||||
|
||||
parsed = self.utility.parse_song_input(song, activity)
|
||||
|
||||
|
@ -10,7 +10,7 @@ class DB:
|
||||
|
||||
def __init__(self, bot) -> None:
|
||||
self.db_path: str | LiteralString = os.path.join(
|
||||
"/usr/local/share", "sqlite_dbs", "lovehate.db"
|
||||
"/mnt/data/share", "sqlite_dbs", "lovehate.db"
|
||||
)
|
||||
|
||||
async def get_wholovehates(
|
||||
|
@ -21,14 +21,14 @@ class Util:
|
||||
self.URL_INSULTAPI: str = "https://insult.mattbas.org/api/insult"
|
||||
self.COMPLIMENT_GENERATOR = ComplimentGenerator()
|
||||
self.dbs: dict[str, str | LiteralString] = {
|
||||
"whisky": os.path.join("/usr/local/share", "sqlite_dbs", "whiskey.db"),
|
||||
"drinks": os.path.join("/usr/local/share", "sqlite_dbs", "cocktails.db"),
|
||||
"strains": os.path.join("/usr/local/share", "sqlite_dbs", "strains.db"),
|
||||
"qajoke": os.path.join("/usr/local/share", "sqlite_dbs", "qajoke.db"),
|
||||
"rjokes": os.path.join("/usr/local/share", "sqlite_dbs", "rjokes.db"),
|
||||
"randmsg": os.path.join("/usr/local/share", "sqlite_dbs", "randmsg.db"),
|
||||
"stats": os.path.join("/usr/local/share", "sqlite_dbs", "havoc_stats.db"),
|
||||
"cookies": os.path.join("/usr/local/share", "sqlite_dbs", "cookies.db"),
|
||||
"whisky": os.path.join("/mnt/data/share", "sqlite_dbs", "whiskey.db"),
|
||||
"drinks": os.path.join("/mnt/data/share", "sqlite_dbs", "cocktails.db"),
|
||||
"strains": os.path.join("/mnt/data/share", "sqlite_dbs", "strains.db"),
|
||||
"qajoke": os.path.join("/mnt/data/share", "sqlite_dbs", "qajoke.db"),
|
||||
"rjokes": os.path.join("/mnt/data/share", "sqlite_dbs", "rjokes.db"),
|
||||
"randmsg": os.path.join("/mnt/data/share", "sqlite_dbs", "randmsg.db"),
|
||||
"stats": os.path.join("/mnt/data/share", "sqlite_dbs", "havoc_stats.db"),
|
||||
"cookies": os.path.join("/mnt/data/share", "sqlite_dbs", "cookies.db"),
|
||||
}
|
||||
self.COFFEES: list = [
|
||||
"a cup of french-pressed coffee",
|
||||
|
Loading…
x
Reference in New Issue
Block a user