mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
feat: add idle timeout setting to auto-disconnect bot when channel is empty
This commit is contained in:
1 parent
d7107677c0
commit
7785cc972b
6 files changed
+120
-1
No files matched your search
Regular → Executable
+2
-1
@@ -22,6 +22,7 @@ export interface WebServerOptions {
|
||||
bilibiliProvider: MusicProvider;
|
||||
database: BotDatabase;
|
||||
config: BotConfig;
|
||||
configPath: string;
|
||||
logger: Logger;
|
||||
cookieStore?: CookieStore;
|
||||
staticDir?: string;
|
||||
@@ -41,7 +42,7 @@ export function createWebServer(options: WebServerOptions): WebServer {
|
||||
|
||||
app.use(
|
||||
"/api/bot",
|
||||
createBotRouter(options.botManager, options.config, logger)
|
||||
createBotRouter(options.botManager, options.config, options.configPath, logger)
|
||||
);
|
||||
app.use(
|
||||
"/api/music",
|
||||
|
||||
Reference in new issue
Block a user