mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-12 21:05:29 +01:00
Merge branch 'master' into feature/slash-commands
This commit is contained in:
commit
b9e21222f5
12
CHANGELOG.md
12
CHANGELOG.md
|
@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Migrated to [Slash Commands](https://support.discord.com/hc/en-us/articles/1500000368501-Slash-Commands-FAQ)
|
||||
- The queue embed now automatically updates every 5 seconds (and has buttons for quick interactions)
|
||||
|
||||
## [0.5.4] - 2022-02-01
|
||||
### Fixed
|
||||
- Prisma no longer causes a crash when running on Windows
|
||||
|
||||
## [0.5.3] - 2022-02-01
|
||||
### Changed
|
||||
- Environment variable values are now trimmed (whitespace is removed)
|
||||
|
||||
## [0.5.2] - 2022-01-29
|
||||
### Fixed
|
||||
- Playing livestreams now works again
|
||||
|
@ -57,7 +65,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Added
|
||||
- Initial release
|
||||
|
||||
[Unreleased]: https://github.com/codetheweb/muse/compare/v0.5.2...HEAD
|
||||
[Unreleased]: https://github.com/codetheweb/muse/compare/v0.5.4...HEAD
|
||||
[0.5.4]: https://github.com/codetheweb/muse/compare/v0.5.3...v0.5.4
|
||||
[0.5.3]: https://github.com/codetheweb/muse/compare/v0.5.2...v0.5.3
|
||||
[0.5.2]: https://github.com/codetheweb/muse/compare/v0.5.1...v0.5.2
|
||||
[0.5.1]: https://github.com/codetheweb/muse/compare/v0.5.0...v0.5.1
|
||||
[0.5.0]: https://github.com/codetheweb/muse/compare/v0.4.0...v0.5.0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "muse",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.4",
|
||||
"description": "🎧 a self-hosted Discord music bot that doesn't suck ",
|
||||
"exports": "./dist/src/index.js",
|
||||
"repository": "git@github.com:codetheweb/muse.git",
|
||||
|
|
|
@ -40,7 +40,7 @@ export default class Config {
|
|||
if (typeof value === 'number') {
|
||||
this[key as ConditionalKeys<typeof CONFIG_MAP, number>] = value;
|
||||
} else if (typeof value === 'string') {
|
||||
this[key as ConditionalKeys<typeof CONFIG_MAP, string>] = value;
|
||||
this[key as ConditionalKeys<typeof CONFIG_MAP, string>] = value.trim();
|
||||
} else if (typeof value === 'boolean') {
|
||||
this[key as ConditionalKeys<typeof CONFIG_MAP, boolean>] = value;
|
||||
} else {
|
||||
|
|
|
@ -2,6 +2,14 @@ import {join} from 'path';
|
|||
|
||||
export const createDatabasePath = (directory: string) => join(directory, 'db.sqlite');
|
||||
|
||||
const createDatabaseUrl = (directory: string) => `file:${createDatabasePath(directory)}`;
|
||||
const createDatabaseUrl = (directory: string) => {
|
||||
const url = `file:${createDatabasePath(directory)}`;
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
return url.replaceAll(/\\/g, '\\\\');
|
||||
}
|
||||
|
||||
return url;
|
||||
};
|
||||
|
||||
export default createDatabaseUrl;
|
||||
|
|
Loading…
Reference in a new issue