diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-06-16 16:09:04 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-06-16 16:09:04 +0900 |
| commit | 5cc1aab5301ad1f9166bbf0420fbaf35fd623c0d (patch) | |
| tree | ed1475a6bf243dcff6af71d90c8c299ee9d2cedb /src/misc/aiscript | |
| parent | Merge branch 'develop' (diff) | |
| parent | 11.21.0 (diff) | |
| download | misskey-5cc1aab5301ad1f9166bbf0420fbaf35fd623c0d.tar.gz misskey-5cc1aab5301ad1f9166bbf0420fbaf35fd623c0d.tar.bz2 misskey-5cc1aab5301ad1f9166bbf0420fbaf35fd623c0d.zip | |
Merge branch 'develop'
Diffstat (limited to 'src/misc/aiscript')
| -rw-r--r-- | src/misc/aiscript/evaluator.ts | 2 | ||||
| -rw-r--r-- | src/misc/aiscript/index.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/aiscript/evaluator.ts b/src/misc/aiscript/evaluator.ts index 541d4e4c65..d93fcebcf7 100644 --- a/src/misc/aiscript/evaluator.ts +++ b/src/misc/aiscript/evaluator.ts @@ -161,7 +161,7 @@ export class ASEvaluator { subtract: (a: number, b: number) => a - b, multiply: (a: number, b: number) => a * b, divide: (a: number, b: number) => a / b, - remind: (a: number, b: number) => a % b, + mod: (a: number, b: number) => a % b, strLen: (a: string) => a.length, strPick: (a: string, b: number) => a[b - 1], strReplace: (a: string, b: string, c: string) => a.split(b).join(c), diff --git a/src/misc/aiscript/index.ts b/src/misc/aiscript/index.ts index 236b332da7..8635399daa 100644 --- a/src/misc/aiscript/index.ts +++ b/src/misc/aiscript/index.ts @@ -58,7 +58,7 @@ export const funcDefs: Record<string, { in: any[]; out: any; category: string; i subtract: { in: ['number', 'number'], out: 'number', category: 'operation', icon: faMinus, }, multiply: { in: ['number', 'number'], out: 'number', category: 'operation', icon: faTimes, }, divide: { in: ['number', 'number'], out: 'number', category: 'operation', icon: faDivide, }, - remind: { in: ['number', 'number'], out: 'number', category: 'operation', icon: faDivide, }, + mod: { in: ['number', 'number'], out: 'number', category: 'operation', icon: faDivide, }, eq: { in: [0, 0], out: 'boolean', category: 'comparison', icon: faEquals, }, notEq: { in: [0, 0], out: 'boolean', category: 'comparison', icon: faNotEqual, }, gt: { in: ['number', 'number'], out: 'boolean', category: 'comparison', icon: faGreaterThan, }, |