diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-01 11:35:49 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-01 11:35:49 +0900 |
| commit | 1d1fc8792005a15af4e79194623d4343fbf29375 (patch) | |
| tree | f73c165343a0eac969bfc41fdf482a6402f4263f /src/client/scripts | |
| parent | Update .gitignore (diff) | |
| download | sharkey-1d1fc8792005a15af4e79194623d4343fbf29375.tar.gz sharkey-1d1fc8792005a15af4e79194623d4343fbf29375.tar.bz2 sharkey-1d1fc8792005a15af4e79194623d4343fbf29375.zip | |
Fix bug
Diffstat (limited to 'src/client/scripts')
| -rw-r--r-- | src/client/scripts/aiscript/evaluator.ts | 5 | ||||
| -rw-r--r-- | src/client/scripts/aiscript/index.ts | 3 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/client/scripts/aiscript/evaluator.ts b/src/client/scripts/aiscript/evaluator.ts index cc1adf4499..5cdf5e0b84 100644 --- a/src/client/scripts/aiscript/evaluator.ts +++ b/src/client/scripts/aiscript/evaluator.ts @@ -17,7 +17,7 @@ export class ASEvaluator { private envVars: Record<keyof typeof envVarsDef, any>; private opts: { - randomSeed: string; user?: any; visitor?: any; page?: any; url?: string; + randomSeed: string; visitor?: any; page?: any; url?: string; }; constructor(variables: Variable[], pageVars: PageVar[], opts: ASEvaluator['opts']) { @@ -39,9 +39,6 @@ export class ASEvaluator { FOLLOWERS_COUNT: opts.visitor ? opts.visitor.followersCount : 0, FOLLOWING_COUNT: opts.visitor ? opts.visitor.followingCount : 0, IS_CAT: opts.visitor ? opts.visitor.isCat : false, - MY_NOTES_COUNT: opts.user ? opts.user.notesCount : 0, - MY_FOLLOWERS_COUNT: opts.user ? opts.user.followersCount : 0, - MY_FOLLOWING_COUNT: opts.user ? opts.user.followingCount : 0, SEED: opts.randomSeed ? opts.randomSeed : '', YMD: `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`, NULL: null diff --git a/src/client/scripts/aiscript/index.ts b/src/client/scripts/aiscript/index.ts index f2de1bb40d..8e7b1f052a 100644 --- a/src/client/scripts/aiscript/index.ts +++ b/src/client/scripts/aiscript/index.ts @@ -125,9 +125,6 @@ export const envVarsDef: Record<string, Type> = { FOLLOWERS_COUNT: 'number', FOLLOWING_COUNT: 'number', IS_CAT: 'boolean', - MY_NOTES_COUNT: 'number', - MY_FOLLOWERS_COUNT: 'number', - MY_FOLLOWING_COUNT: 'number', SEED: null, YMD: 'string', NULL: null, |