-
Notifications
You must be signed in to change notification settings - Fork 230
/
app.json
85 lines (85 loc) · 5.11 KB
/
app.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
{
"name": "Discord Twitter Bot",
"description": "Posts Twitter tweets to Discord through Webhook",
"keywords": [
"discord",
"bot",
"twitter",
"tweets"
],
"website": "https://nntin.xyz/",
"logo": "https://i.imgur.com/11zvdoc.png",
"env": {
"ACCESS_TOKEN": {
"description": "Get ACCESS_TOKEN, ACCESS_TOKEN_SECRET, CONSUMER_KEY and CONSUMER_SECRET here:\nhttps://developer.twitter.com/en/apps\nTwitter access token"
},
"ACCESS_TOKEN_SECRET": {
"description": "Twitter access token secret"
},
"CONSUMER_KEY": {
"description": "Twitter consumer key"
},
"CONSUMER_SECRET": {
"description": "Twitter consumer secret"
},
"WEBHOOK_URL": {
"description": "Discord webhook URL https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks\nComma separate multiple. When using multiple it will post the **same** twitter feed to multiple text channels.\nExample: `https://discordapp.com/api/webhooks/123456/XXXX-XXXX`"
},
"TWITTER_ID": {
"description": "Preferred method: Twitter ID(s) http://gettwitterid.com/\nSeparate multiple twitter IDs with a comma.\nExample: `3065618342,176507184`",
"required": false
},
"TWITTER_LIST": {
"description": "Example Twitter List: `https://twitter.com/rokxx/lists/dota-2`\nComma separate multiple.\nThis can slow the start time of your bot. Configuring through TWITTER_ID is preferred.",
"required": false
},
"TWITTER_HANDLE": {
"description": "The Twitter handle is part of the link! https://twitter.com/<TWITTER_HANDLE>\nComma separate multiple twitter handles.\nThis can slow the start time of your bot. Configuring through TWITTER_ID is preferred.\nExample: `discordapp,dota2`",
"required": false
},
"TRACK": {
"description": "Useful when you want to subscribe to some #hashtags or get tweets that contain certain phrases.\nComma separate multiple. Use the hashtag # suffix if you want to filter for a hashtag.\nWarning: If you use a very simple word e.g. `twitter` it will flood your Discord, get rate limited by Discord and eventually get rate limited by Twitter as well.\nWarning: The tracking is applied to everyone. This means you will get tweets from entirely random people.\nExample: `#Heroku`",
"required": false
},
"LOCATION": {
"description": "Apply a location box. This is useful if you want to get tweets made from certain locations. E.g. city specific tweets.\nUse this website in order to determine the string: http://boundingbox.klokantech.com/\nNote that when using TWITTER_ID/_LIST/_HANDLE, TRACK and LOCATION the tweets you will be getting are in a OR relationship. This means if anything applies the tweet will be posted.\nExample: \n`-122.75,36.8,-121.75,37.8` is a location box for San Francisco.\n`-74,40,-73,41` is a location box for New York City.\n`-122.75,36.8,-121.75,37.8,-74,40,-73,41` are location boxes for San Francisco and New York City.",
"required": false
},
"INCLUDE_REPLY_TO_USER": {
"description": "Include replies **from other** Twitter users tweeting **TO** your tracked twitter user?\nExample: `True`",
"value": "true"
},
"INCLUDE_RETWEET": {
"description": "Include retweets?\nExample: `False`\nWhether the bot should show retweets.",
"value": "true"
},
"INCLUDE_USER_REPLY": {
"description": "Include replies **FROM** your tracked twitter user to other twitter users\nExample: `True`",
"value": "true"
},
"INCLUDE_ATTACHMENT": {
"description": "Include attachments?\nExample: `False`\nIf the tweet contains media the bot will try to attach an image.",
"value": "true"
},
"INCLUDE_QUOTE": {
"description": "Include quotes?\nExample: `False`\nThis requires INCLUDE_RETWEET True. Shows the original tweet as an additional field in the embed.",
"value": "true"
},
"CREATE_EMBED": {
"description": "Recommended set to true, unless you don't want to see the custom embed. Definitely turn it off if you are relying on Discord's autoembed feature.",
"value": "true"
},
"CUSTOM_MESSAGE": {
"description": "OPTIONAL: Custom message. Useful if you want to create your own text, ping @everyone or certain roles or rely on Discord's autoembed. Available placeholders are: `url`, `user`, `text`.\nExample: `Hey @everyone, {user} just tweeted {text}. Click on the tweet here {url}`",
"required": false
},
"KEYWORDS": {
"description": "OPTIONAL: Will only post tweets with certain keywords. Comma separate keyword sets. Separate a keyword set with +. \nExample: `world+hello, giveaway`\nTweet says `hello guys!` --> not posted\nTweet says `my first tweet: hello world` --> posted because it contains both hello and world\nTweet says `New Giveaway! Click here` --> posted because it contains giveaway",
"required": false
},
"BLACKWORDS": {
"description": "OPTIONAL: The opposite of KEYWORDS, will not post tweets containing certain blackwords. Just like KEYWORDS: Comma separate keyword sets. Separate a keyword set with +.\nExample: `daily+reminder,hello`",
"required": false
}
}
}