-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
69 lines (66 loc) · 2.19 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { Interaction } from './src/functions.js';
const list = [
'919862408837730345',
'506072711815233536'
]
test();
async function test() {
list.forEach(async id => {
console.log(await Interaction.set([
{
name: "reply",
type: 1,
description: "返信の管理",
options: [
{
name: 'add',
type: 1,
description: '返信を追加',
options: [
{ name: 'key', type: 3, description: '反応させる文字', required: true },
{ name: 'value', type: 3, description: '応答させる文字', required: true },
{ name: 'weight', type: 4, description: '応答確率' },
{ name: 'chance', type: 4, description: '抽選確率' },
{ name: 'min_wait', type: 4, description: '最小待機時間' },
{ name: 'max_wait', type: 4, description: '最大待機時間' },
{ name: 'include', type: 5, description: '部分一致でも反応するか' }
]
},
{
name: 'remove',
type: 1,
description: '返信を削除',
options: [
{ name: 'key', type: 3, description: 'this key', required: true, autocomplete: true },
{ name: 'value', type: 3, description: 'this value' }
]
},
{
name: 'list',
type: 1,
description: '登録されている返信'
}
]
},
{
name: "eval",
type: 1,
description: "コードの実行",
options: [ { name: 'code', type: 3, description: '実行するコード', required: true } ]
},
{
name: "test",
type: 1,
description: "test",
options: [
{ name: 'test_1', type: 3, description: 'test' },
{ name: 'test_2', type: 3, description: 'test' },
{ name: 'test_3', type: 3, description: 'test' },
{ name: 'test_4', type: 3, description: 'test' },
{ name: 'test_5', type: 3, description: 'test' },
{ name: 'data', type: 3, description: 'test', autocomplete: true }
]
}
], id));
});
};