koishi-plugin-ets2-tools-tmp 0.0.5 → 1.0.0

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.
@@ -25,8 +25,8 @@ module.exports = async (ctx, cfg, session, tmpId) => {
25
25
  // if (tmpId && isNaN(tmpId)) {
26
26
  // return `请输入正确的玩家编号`;
27
27
  // }
28
- if (tmpId.startsWith("<at ")) {
29
- if (tmpId && tmpId.startsWith('<at ')) {
28
+ if (tmpId && tmpId.startsWith("<at ")) {
29
+ if (tmpId.startsWith('<at ')) {
30
30
  queryQQ = tmpId.replace('<at ', '');
31
31
  }
32
32
  let id = '';
@@ -7,7 +7,11 @@ const serverNameAlias = {
7
7
  's1': 'sim1',
8
8
  's2': 'sim2',
9
9
  'p': 'eupromods1',
10
- 'a': 'arc1'
10
+ 'a': 'arc1',
11
+ 'S1': 'sim1',
12
+ 'S2': 'sim2',
13
+ 'P': 'eupromods1',
14
+ 'A': 'arc1'
11
15
  };
12
16
  /**
13
17
  * 路况程度转中文
package/lib/index.d.ts CHANGED
@@ -9,6 +9,27 @@ export interface Config {
9
9
  baiduTranslateAppId: string;
10
10
  baiduTranslateKey: string;
11
11
  baiduTranslateCacheEnable: boolean;
12
+ adminUseHttps: boolean;
13
+ adminApiUrl: string;
14
+ adminApiToken: string;
15
+ adminVtcId: string;
16
+ adminCheckTimes: string[];
17
+ adminSendTimes: string[];
18
+ adminGroups: string[];
19
+ adminServerSource: string;
20
+ adminStartPointSource: string;
21
+ adminEndPointSource: string;
22
+ adminShowBanner: boolean;
23
+ adminProfileUploadedMessage: string;
24
+ adminProfileNotUploadedMessage: string;
25
+ mainGroups: string[];
26
+ mainActivityReminderMessage: string;
27
+ mainActivityReminderTimes: number[];
28
+ debugMode: boolean;
29
+ logApiResponses: boolean;
30
+ logTimingDetails: boolean;
31
+ logActivityMatching: boolean;
32
+ logMessageSending: boolean;
12
33
  }
13
34
  export declare const Config: Schema<Config>;
14
35
  export declare function apply(ctx: Context, cfg: Config): void;