@enderhorror/koishi-plugin-steam-friend-status 0.0.0-stage → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,133 @@
1
+ * {
2
+ margin: 0px;
3
+ padding: 0px;
4
+ box-sizing: border-box;
5
+ }
6
+ ul {
7
+ list-style: none;
8
+ }
9
+ .bg {
10
+ width: 227px;
11
+ }
12
+ .header {
13
+ display: flex;
14
+ border-radius: 7px 7px 0px 0px;
15
+ height: 75px;
16
+ padding-top: 15px;
17
+ padding-left: 7px;
18
+ padding-bottom: 10px;
19
+ background-color: #1c232c;
20
+ }
21
+ .header .headshot {
22
+ display: block;
23
+ width: 50px;
24
+ height: 50px;
25
+ }
26
+ .header .bot {
27
+ display: flex;
28
+ }
29
+ .header .bot .text {
30
+ display: flex;
31
+ flex-direction: column;
32
+ justify-content: center;
33
+ }
34
+ .friendline {
35
+ height: 30px;
36
+ background-color: #434952;
37
+ }
38
+ .friendline .text {
39
+ padding-left: 15px;
40
+ font-size: 12px;
41
+ line-height: 30px;
42
+ color: #b7ccd5;
43
+ }
44
+ .friendlist {
45
+ background-color: #1f2126;
46
+ padding-bottom: 15px;
47
+ border-radius: 0px 0px 6px 6px;
48
+ }
49
+ .group {
50
+ border-bottom: 1px solid #176383;
51
+ }
52
+ .group .title {
53
+ padding: 6px 0px 0px 13px;
54
+ font-size: 12px;
55
+ color: #c5d6d4;
56
+ line-height: 28px;
57
+ }
58
+ .group:last-child {
59
+ border-bottom: none;
60
+ }
61
+ .friend {
62
+ /* 允许容器高度根据内容自适应,以容纳换行的昵称 */
63
+ height: auto;
64
+ padding: 7px 0px 7px 13px;
65
+ display: flex;
66
+ /* 垂直顶部对齐,确保头像在视觉上保持一致 */
67
+ align-items: flex-start;
68
+ }
69
+ .friend .headshot-online {
70
+ display: block;
71
+ width: 32px;
72
+ height: 32px;
73
+ }
74
+ .friend .headshot-offline {
75
+ display: block;
76
+ width: 32px;
77
+ height: 32px;
78
+ filter: grayscale(60%);
79
+ }
80
+ .friend .name-and-status {
81
+ padding-left: 8px;
82
+ display: flex;
83
+ flex-direction: column;
84
+ justify-content: center;
85
+ /* 允许该 flex 项收缩,以适应父容器的宽度 */
86
+ flex: 1;
87
+ min-width: 0;
88
+ }
89
+ .status-offline {
90
+ padding-left: 10px;
91
+ font-size: 10px;
92
+ color: #6e6e6e;
93
+ }
94
+ .status-online {
95
+ padding-left: 10px;
96
+ font-size: 10px;
97
+ color: #4c91ac;
98
+ }
99
+ .status-gaming {
100
+ padding-left: 10px;
101
+ font-size: 10px;
102
+ color: #91c257;
103
+ }
104
+ .name-offline {
105
+ padding-left: 10px;
106
+ font-size: 13px;
107
+ line-height: 16px;
108
+ color: #969797;
109
+ /* 允许文本自动换行 */
110
+ white-space: normal;
111
+ /* 强制在长单词或 URL 内部换行,防止布局崩溃 */
112
+ word-break: break-word;
113
+ }
114
+ .name-online {
115
+ padding-left: 10px;
116
+ font-size: 13px;
117
+ line-height: 16px;
118
+ color: #6dcff6;
119
+ /* 允许文本自动换行 */
120
+ white-space: normal;
121
+ /* 强制在长单词或 URL 内部换行,防止布局崩溃 */
122
+ word-break: break-word;
123
+ }
124
+ .name-gaming {
125
+ padding-left: 10px;
126
+ font-size: 13px;
127
+ line-height: 16px;
128
+ color: #e2fec1;
129
+ /* 允许文本自动换行 */
130
+ white-space: normal;
131
+ /* 强制在长单词或 URL 内部换行,防止布局崩溃 */
132
+ word-break: break-word;
133
+ }
@@ -0,0 +1,95 @@
1
+ <!doctype html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <style>
7
+ body {
8
+ font-family: "Noto Sans SC", sans-serif;
9
+ margin: 0;
10
+ padding: 0;
11
+ background: transparent;
12
+ }
13
+
14
+ .card {
15
+ display: inline-flex;
16
+ align-items: center;
17
+ /* background-color: #1e252b; */
18
+ padding: 10px;
19
+ background-image: url("{{background}}");
20
+ background-size: cover;
21
+ border-radius: 4px;
22
+ width: 300px;
23
+ box-sizing: border-box;
24
+ }
25
+
26
+ .avatar-container {
27
+ position: relative;
28
+ margin-right: 10px;
29
+ }
30
+
31
+ .avatar {
32
+ width: 48px;
33
+ height: 48px;
34
+ vertical-align: middle;
35
+ }
36
+
37
+ .status-border {
38
+ position: absolute;
39
+ top: -2px;
40
+ left: -2px;
41
+ width: 50px;
42
+ height: 50px;
43
+ border: 2px solid;
44
+ box-sizing: border-box;
45
+ }
46
+
47
+ .status-border.online {
48
+ border-color: #57cbde;
49
+ }
50
+
51
+ .status-border.ingame {
52
+ border-color: #90b93b;
53
+ }
54
+
55
+ .info {
56
+ display: flex;
57
+ flex-direction: column;
58
+ justify-content: center;
59
+ color: #c1c6cf;
60
+ font-size: 14px;
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ }
65
+
66
+ .username {
67
+ color: #57cbde;
68
+ font-weight: 500;
69
+ margin-bottom: 2px;
70
+ }
71
+
72
+ .game-info {
73
+ color: #90b93b;
74
+ font-weight: 500;
75
+ }
76
+ </style>
77
+ </head>
78
+
79
+ <body>
80
+ <div class="card">
81
+ <div class="avatar-container">
82
+ <img class="avatar" src="{{avatar}}" />
83
+ <div class="status-border {{statusClass}}"></div>
84
+ </div>
85
+ <div class="info">
86
+ <div class="username">{{username}}</div>
87
+ <div>
88
+ {{statusText}}
89
+ <span class="game-info">{{gameName}}</span>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ </body>
94
+
95
+ </html>
@@ -0,0 +1,85 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <title></title>
8
+ <meta name="description" content="">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1">
10
+ <link rel="stylesheet" href="../css/steamFriendList.css">
11
+ </head>
12
+
13
+ <body>
14
+ <div class="bg">
15
+ <div class="bg header">
16
+ <div class="bot">
17
+ <img class="headshot" src="../res/unknown_avatar.jpg" alt="headshot">
18
+ <div class="text">
19
+ <p class="name-online" style="font-size: 14px;"><b>#</b></p>
20
+ <p class="status-online">在线</p>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ <div class="friendline">
25
+ <p class="text">好友</p>
26
+ </div>
27
+ <div class="friendlist">
28
+ <ul>
29
+ <li class="group">
30
+ <p class="title">游戏中(1)</p>
31
+ <ul id="ul-gaming">
32
+ <!-- <li class="friend">
33
+ <img src="../res/unknown_avatar.jpg" class="headshot-online">
34
+ <div class="name-and-status">
35
+ <p class="name-gaming">Nijika</p>
36
+ <p class="status-gaming">千恋万花</p>
37
+ </div>
38
+ </li> -->
39
+ </ul>
40
+ </li>
41
+ <li class="group">
42
+ <p class="title">在线好友(3)</p>
43
+ <ul id="ul-online">
44
+ <!-- <li class="friend">
45
+ <img src="../res/unknown_avatar.jpg" class="headshot-online">
46
+ <div class="name-and-status">
47
+ <p class="name-online">Nijika</p>
48
+ <p class="status-online">在线</p>
49
+ </div>
50
+ </li>
51
+ <li class="friend">
52
+ <img src="../res/unknown_avatar.jpg" class="headshot-online">
53
+ <div class="name-and-status">
54
+ <p class="name-online">Nijika</p>
55
+ <p class="status-online">在线</p>
56
+ </div>
57
+ </li>
58
+ <li class="friend">
59
+ <img src="../res/unknown_avatar.jpg" class="headshot-online">
60
+ <div class="name-and-status">
61
+ <p class="name-online">Nijika</p>
62
+ <p class="status-online">在线</p>
63
+ </div>
64
+ </li> -->
65
+ </ul>
66
+ </li>
67
+ <li class="group">
68
+ <p class="title">离线好友(1)</p>
69
+ <ul id="ul-offline">
70
+ <!-- <li class="friend">
71
+ <img src="../res/unknown_avatar.jpg" class="headshot-offline">
72
+ <div class="name-and-status">
73
+ <p class="name-offline">Nijika</p>
74
+ <p class="status-offline">离线</p>
75
+ </div>
76
+ </li> -->
77
+ </ul>
78
+ </li>
79
+ </ul>
80
+ </div>
81
+ </div>
82
+ <script src="" async defer></script>
83
+ </body>
84
+
85
+ </html>
@@ -0,0 +1,143 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+
4
+ <head>
5
+ <meta charset="UTF-8" />
6
+ <title>Steam Profile</title>
7
+ <style>
8
+ @font-face {
9
+ font-family: "Noto Sans SC";
10
+ src: url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap");
11
+ }
12
+
13
+ body {
14
+ font-family: "Noto Sans SC", sans-serif;
15
+ background-color: #1a202c;
16
+ color: #e2e8f0;
17
+ margin: 0;
18
+ padding: 20px;
19
+ }
20
+
21
+ .profile-card {
22
+ position: relative;
23
+ width: 600px;
24
+ border-radius: 10px;
25
+ overflow: hidden;
26
+ background-color: #2d3748;
27
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
28
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
29
+ }
30
+
31
+ .profile-background {
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+ width: 100%;
36
+ height: 100%;
37
+ object-fit: cover;
38
+ opacity: 0.1;
39
+ z-index: 0;
40
+ }
41
+
42
+ .profile-content {
43
+ position: relative;
44
+ z-index: 1;
45
+ padding: 24px;
46
+ }
47
+
48
+ .header {
49
+ display: flex;
50
+ align-items: center;
51
+ margin-bottom: 24px;
52
+ }
53
+
54
+ .avatar {
55
+ width: 80px;
56
+ height: 80px;
57
+ border-radius: 8px;
58
+ margin-right: 20px;
59
+ border: 2px solid #4a5568;
60
+ }
61
+
62
+ .user-info {
63
+ flex-grow: 1;
64
+ }
65
+
66
+ .user-info .name {
67
+ font-size: 24px;
68
+ font-weight: 700;
69
+ color: #ffffff;
70
+ margin: 0;
71
+ }
72
+
73
+ .user-info .status {
74
+ font-size: 14px;
75
+ color: #a0aec0;
76
+ margin-top: 4px;
77
+ }
78
+
79
+ .recent-activity {
80
+ font-size: 18px;
81
+ font-weight: 500;
82
+ color: #cbd5e0;
83
+ margin-bottom: 16px;
84
+ border-bottom: 1px solid #4a5568;
85
+ padding-bottom: 8px;
86
+ }
87
+
88
+ .games-list {
89
+ display: flex;
90
+ flex-direction: column;
91
+ gap: 16px;
92
+ }
93
+
94
+ .game {
95
+ background-color: rgba(45, 55, 72, 0.8);
96
+ border-radius: 8px;
97
+ overflow: hidden;
98
+ }
99
+
100
+ .game-banner {
101
+ width: 100%;
102
+ height: 100px;
103
+ object-fit: cover;
104
+ }
105
+
106
+ .game-details {
107
+ padding: 12px;
108
+ }
109
+
110
+ .game-name {
111
+ font-size: 16px;
112
+ font-weight: 500;
113
+ color: #ffffff;
114
+ }
115
+
116
+ .game-hours {
117
+ font-size: 12px;
118
+ color: #a0aec0;
119
+ margin-top: 4px;
120
+ }
121
+ </style>
122
+ </head>
123
+
124
+ <body>
125
+ <div class="profile-card">
126
+ <img class="profile-background" src="{{background}}" />
127
+ <div class="profile-content">
128
+ <div class="header">
129
+ <img class="avatar" src="{{avatar}}" />
130
+ <div class="user-info">
131
+ <h1 class="name">{{name}}</h1>
132
+ <p class="status">{{status}} | 等级: {{level}}</p>
133
+ </div>
134
+ </div>
135
+ <h2 class="recent-activity">最近动态</h2>
136
+ <div class="games-list">
137
+ {{recentGames}}
138
+ </div>
139
+ </div>
140
+ </div>
141
+ </body>
142
+
143
+ </html>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,9 @@
1
+ import { Context } from "koishi";
2
+ import { PluginLogger } from "./logger";
3
+ export interface SteamBroadcastConfig {
4
+ SteamApiKey: string;
5
+ useSteamName: boolean;
6
+ broadcastWithImage: boolean;
7
+ }
8
+ export declare function pollSteamBroadcast(ctx: Context, config: SteamBroadcastConfig, logger: PluginLogger, shouldStop: () => boolean): Promise<void>;
9
+ export declare function updatePlayerHeadshots(ctx: Context, config: SteamBroadcastConfig, logger: PluginLogger): Promise<void>;
@@ -0,0 +1,3 @@
1
+ import { Session } from "koishi";
2
+ import { PluginLogger } from "./logger";
3
+ export declare function toggleChannelBroadcast(logger: PluginLogger, session: Session<"authority", "usingSteam">, action?: string): string;
@@ -0,0 +1,37 @@
1
+ import { Context, Session } from "koishi";
2
+ import { SteamUser } from "./types";
3
+ export declare function selectUsersByGroup(steamusers: SteamUser[], groupid: string): SteamUser[];
4
+ /**
5
+ * 绑定 Steam 账号到用户
6
+ * @param ctx Koishi context
7
+ * @param friendcodeOrId 用户的 SteamID 或好友码
8
+ * @param session Koishi session
9
+ * @param steamApiKey Steam Web API Key
10
+ * @param inputid 可选,指定的用户ID
11
+ * @param inputname 可选,指定用户名
12
+ * @returns 返回操作结果的字符串
13
+ */
14
+ export declare function bindPlayer(ctx: Context, friendcodeOrId: string, session: Session, steamApiKey: string, inputid?: string, inputname?: string): Promise<string>;
15
+ /**
16
+ * 从指定群组解绑用户的 Steam 账号
17
+ * @param ctx Koishi context
18
+ * @param userid 用户ID
19
+ * @param channelid 频道ID
20
+ * @returns 返回操作结果的字符串
21
+ */
22
+ export declare function unbindPlayer(ctx: Context, userid: string, channelid: string): Promise<string>;
23
+ /**
24
+ * 解绑当前频道所有用户的 Steam 账号
25
+ * @param ctx Koishi context
26
+ * @param channelid 频道ID
27
+ * @returns 返回操作结果的字符串
28
+ */
29
+ export declare function unbindAll(ctx: Context, channelid: string): Promise<string>;
30
+ /**
31
+ * 下载并保存用户头像
32
+ * @param ctx Koishi context
33
+ * @param url 头像URL
34
+ * @param steamId Steam64 ID
35
+ * @returns 返回是否下载成功
36
+ */
37
+ export declare function downloadAvatar(ctx: Context, url: string, steamId: string): Promise<boolean>;
package/lib/fetch.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ import { Context } from "koishi";
2
+ /**
3
+ * 封装的 fetch 配置接口
4
+ */
5
+ export interface FetchConfig {
6
+ maxRetries: number;
7
+ useApifoxProxy: boolean;
8
+ }
9
+ /**
10
+ * 封装的 fetch 函数,支持直连失败后的 APIFOX 兜底、自动重试和熔断器保护
11
+ * @param ctx Koishi context
12
+ * @param url 请求的 URL
13
+ * @param options fetch 选项
14
+ * @param config 重试与代理兜底配置
15
+ * @param allowApifox 是否允许使用 APIFOX 公共代理兜底
16
+ * @returns 返回 Response 对象
17
+ */
18
+ export declare function fetchWithProxy(ctx: Context, url: string, options: RequestInit, config: FetchConfig, allowApifox?: boolean): Promise<Response>;
19
+ /**
20
+ * 获取 JSON 数据
21
+ * @param ctx Koishi context
22
+ * @param url 请求的 URL
23
+ * @param config 重试与代理兜底配置
24
+ * @returns 返回解析后的 JSON 对象
25
+ */
26
+ export declare function fetchJson<T = unknown>(ctx: Context, url: string, config: FetchConfig): Promise<T>;
27
+ /**
28
+ * 获取 ArrayBuffer 数据(用于下载图片等二进制数据)
29
+ * @param ctx Koishi context
30
+ * @param url 请求的 URL
31
+ * @param config 重试与代理兜底配置
32
+ * @returns 返回 ArrayBuffer
33
+ */
34
+ export declare function fetchArrayBuffer(ctx: Context, url: string, config: FetchConfig): Promise<ArrayBuffer>;
package/lib/image.d.ts ADDED
@@ -0,0 +1,53 @@
1
+ import { Context, h } from "koishi";
2
+ import { GameChangeInfo, SteamUserInfo } from "./types";
3
+ /**
4
+ * 初始化机器人和群组的头像缓存
5
+ * @param ctx Koishi context
6
+ */
7
+ export declare function initHeadshots(ctx: Context, shouldStop?: () => boolean): Promise<void>;
8
+ /**
9
+ * 获取并保存群组头像
10
+ * @param ctx Koishi context
11
+ * @param groupid 群组ID
12
+ * @param botId 机器人ID
13
+ */
14
+ export declare function getGroupHeadshot(ctx: Context, groupid: string, botId?: string): Promise<void>;
15
+ /**
16
+ * 获取并保存机器人头像
17
+ * @param ctx Koishi context
18
+ * @param botId 机器人ID
19
+ */
20
+ export declare function getBotHeadshot(ctx: Context, botId: string): Promise<void>;
21
+ /**
22
+ * 使用 Puppeteer 生成好友状态图片
23
+ * @param ctx Koishi context
24
+ * @param userData 从 Steam API 获取的用户数据
25
+ * @param botid 机器人ID
26
+ * @param channelid 可选,频道ID
27
+ * @param channelname 可选,频道名称
28
+ * @returns 返回一个 h.image 元素
29
+ */
30
+ export declare function getFriendStatusImg(ctx: Context, userData: SteamUserInfo, botid: string, channelid?: string, channelname?: string): Promise<h>;
31
+ import { SteamProfile } from "./types";
32
+ /**
33
+ * 使用 Puppeteer 和字符串替换生成 Steam 个人主页图片
34
+ * @param ctx Koishi context
35
+ * @param profileData 从 Steam 个人主页抓取的数据
36
+ * @returns 返回一个 h.image 元素
37
+ */
38
+ export declare function getSteamProfileImg(ctx: Context, profileData: SteamProfile, steamId: string): Promise<h | "无法生成个人主页图片。">;
39
+ /**
40
+ * 生成游戏状态变化播报的图片
41
+ * @param ctx Koishi context
42
+ * @param avatarUrl 玩家头像的URL
43
+ * @param message 播报消息
44
+ * @returns 返回一个 h.image 元素
45
+ */
46
+ /**
47
+ * 生成游戏状态变化播报的图片 (新版)
48
+ * @param ctx Koishi context
49
+ * @param playerInfo 玩家的 Steam 信息
50
+ * @param changeInfo 游戏状态变化信息
51
+ * @returns 返回一个 h.image 元素
52
+ */
53
+ export declare function getGameChangeImg(ctx: Context, playerInfo: SteamUserInfo["response"]["players"][0], changeInfo: GameChangeInfo): Promise<h | "无法生成播报图片。">;
package/lib/index.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import { Context, Schema } from "koishi";
2
+ export declare const name = "steam-friend-status-fork";
3
+ export declare const inject: string[];
4
+ export declare const usage = "\n---\n\n<h3>\uD83D\uDCDD \u6307\u4EE4\u5217\u8868</h3>\n\n<h4>\uD83D\uDD17 \u8D26\u53F7\u7BA1\u7406</h4>\n<ul>\n <li><code>steam-friend-status.\u7ED1\u5B9Asteam 123456789</code> - \u7ED1\u5B9A\u81EA\u5DF1\u7684 Steam \u8D26\u53F7\uFF08steamid \u53EF\u4EE5\u662F\u597D\u53CB\u7801\u6216 SteamID\uFF09</li>\n <li><code>steam-friend-status.\u7ED1\u5B9Asteam 123456789 @\u7528\u6237</code> - \u4E3A\u5176\u4ED6\u7528\u6237\u7ED1\u5B9A Steam \u8D26\u53F7</li>\n <li><code>steam-friend-status.\u89E3\u7ED1steam</code> - \u89E3\u7ED1\u81EA\u5DF1\u7684 Steam \u8D26\u53F7</li>\n <li><code>steam-friend-status.\u89E3\u7ED1steam @\u7528\u6237</code> - \u4E3A\u5176\u4ED6\u7528\u6237\u89E3\u7ED1 Steam \u8D26\u53F7</li>\n <li><code>steam-friend-status.\u89E3\u7ED1\u5168\u90E8steam</code> - \u89E3\u7ED1\u5F53\u524D\u9891\u9053\u6240\u6709\u7528\u6237\u7684 Steam \u8D26\u53F7</li>\n</ul>\n\n<h4>\uD83D\uDCCA \u72B6\u6001\u67E5\u770B</h4>\n<ul>\n <li><code>steam-friend-status.\u770B\u770Bsteam</code> - \u67E5\u770B\u5F53\u524D\u7FA4\u6240\u6709\u7ED1\u5B9A\u7528\u6237\u7684\u6E38\u620F\u72B6\u6001</li>\n <li><code>steam-friend-status.steam\u4FE1\u606F</code> - \u67E5\u770B\u81EA\u5DF1\u7684\u597D\u53CB\u7801\u548C Steam ID</li>\n <li><code>steam-friend-status.steam\u4FE1\u606F @\u7528\u6237</code> - \u67E5\u770B\u5176\u4ED6\u7528\u6237\u7684\u597D\u53CB\u7801\u548C Steam ID</li>\n <li><code>steam-friend-status.\u66F4\u65B0steam</code> - \u66F4\u65B0\u6240\u6709\u7528\u6237\u7684\u5934\u50CF\u4FE1\u606F</li>\n</ul>\n\n<h4>\u2699\uFE0F \u7FA4\u7EC4\u8BBE\u7F6E</h4>\n<ul>\n <li><code>steam-friend-status.steam\u7FA4\u62A5</code> - \u5207\u6362\u5F53\u524D\u7FA4\u7684\u6E38\u620F\u72B6\u6001\u64AD\u62A5\uFF08\u9700\u8981\u7BA1\u7406\u5458\u6743\u9650\uFF09</li>\n</ul>\n\n---\n\n";
5
+ export declare const Config: Schema<Schemastery.ObjectS<{}>, {} & import("cosmokit").Dict>;
6
+ export interface PluginConfig {
7
+ SteamApiKey: string;
8
+ interval: number;
9
+ useSteamName: boolean;
10
+ broadcastWithImage: boolean;
11
+ useApifoxProxy: boolean;
12
+ maxRetries: number;
13
+ showcardmode: "1" | "2";
14
+ showuserIdorsteamId: boolean;
15
+ showOfflineFriends: boolean;
16
+ botname?: string;
17
+ steamIdOffset: number;
18
+ steamWebApiUrl: string;
19
+ steamstatus: Record<string, string>;
20
+ loggerinfo: boolean;
21
+ }
22
+ export declare function apply(ctx: Context, config: PluginConfig): void;