This repository has been archived by the owner on Apr 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Configuration.json
102 lines (101 loc) · 3.14 KB
/
Configuration.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"DestinationConfig": {
"properties": {
"channel_id": {
"description": "Discord channel ID (required if using bot)",
"type": "string"
},
"token": {
"description": "Discord bot token (required if using bot)",
"type": "string"
},
"webhook_url": {
"description": "Discord webhook URL (required if using webhook)",
"type": "string"
}
},
"type": "object"
}
},
"properties": {
"discord": {
"description": "Discord webhook URL or bot token",
"properties": {
"follow": {
"$ref": "#/definitions/DestinationConfig",
"description": "Notification recipients when you follow/unfollow"
},
"follower": {
"$ref": "#/definitions/DestinationConfig",
"description": "Notification recipient when you are followed / no longer a follower."
}
},
"required": [
"follow",
"follower"
],
"type": "object"
},
"twapi": {
"properties": {
"base_url": {
"type": "string"
},
"basic_password": {
"type": "string"
},
"basic_username": {
"type": "string"
},
"target_user_id": {
"type": "string"
}
},
"required": [
"base_url",
"basic_password",
"basic_username",
"target_user_id"
],
"type": "object"
},
"twitter": {
"description": "Twitter API keys",
"properties": {
"access_token": {
"description": "Twitter API (v1) access token",
"type": "string"
},
"access_token_secret": {
"description": "Twitter API (v1) access token secret",
"type": "string"
},
"consumer_key": {
"description": "Twitter API (v1) consumer key",
"type": "string"
},
"consumer_secret": {
"description": "Twitter API (v1) consumer secret",
"type": "string"
},
"target_user_id": {
"description": "Target user id",
"type": "string"
}
},
"required": [
"consumer_key",
"consumer_secret",
"target_user_id"
],
"type": "object"
}
},
"required": [
"discord",
"twitter"
],
"type": "object"
}