
10 changed files with 198 additions and 79 deletions
-
15CHANGELOG.md
-
22config.json
-
11docs/.gitrepo
-
11docs/user/commands.md
-
31docs/user/configuration.md
-
6docs/user/installation.md
-
10docs/user/troubleshooting.md
-
161feed-bot.js
-
7log.js
-
3package.json
@ -1,14 +1,24 @@ |
|||
{ |
|||
"feedUrl": "https://www.youtube.com/feeds/videos.xml?user=EthosLab", |
|||
"channelID": "264420391282409473", |
|||
"serverID": "264420391282409473", |
|||
"pollingInterval": 5000, |
|||
"numLinksToCache": 10, |
|||
"messageDeleteDelay": 10000, |
|||
"youtubeMode": true, |
|||
"logRequestMessage": "!logsplease", |
|||
"subscribeRequestMessage": "!subscribe", |
|||
"unsubscribeRequestMessage": "!unsubscribe", |
|||
"subscribersListRequestMessage": "!sublist", |
|||
"helpRequestMessage": "!help", |
|||
"allowSubscriptions": true, |
|||
"subscribersRoleID": "272788856447959040", |
|||
"logFile": "./log", |
|||
"subscribersFile": "./subscribers.json" |
|||
"userCommands": { |
|||
"subscribe": "!subscribe", |
|||
"unsubscribe": "!unsubscribe", |
|||
"help": "!help" |
|||
}, |
|||
"developerCommands": { |
|||
"logUpload": "!logsplease", |
|||
"cacheList": "!cacheList" |
|||
}, |
|||
"developers": [ |
|||
"117966411548196870" |
|||
] |
|||
} |
@ -0,0 +1,11 @@ |
|||
; DO NOT EDIT (unless you know what you are doing) |
|||
; |
|||
; This subdirectory is a git "subrepo", and this file is maintained by the |
|||
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme |
|||
; |
|||
[subrepo] |
|||
remote = git@github.com:benji7425/discord-feed-bot.wiki.git |
|||
branch = master |
|||
commit = f70e48b91074ad051eec48679d013409a79ed53e |
|||
parent = 21bc8bdaeb42f8eca6218fbe1910ddcc75d56c3c |
|||
cmdver = 0.3.1 |
@ -0,0 +1,31 @@ |
|||
# Configuration |
|||
|
|||
| parameter | description | |
|||
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------| |
|||
| feedUrl | the RSS feed to check | |
|||
| channelID | report all the cached URLs | |
|||
| serverID | id of the server the bot is installed on - require to use subscriptions | |
|||
| pollingInterval | interval in ms to check the RSS feed | |
|||
| numLinksToCache | number of posted links to cache and check against before posting - turn this up if users post a lot of links in the channel | |
|||
| messageDeleteDelay | time in ms to leave response messages before deleting (eg "You have successfully subscribed") | |
|||
| youtubeMode | whether or not to convert YouTube links to their short url - recommended if you are pulling links from a YouTube channel feed | |
|||
| allowSubscriptions | whether or not to have the bot mention a role when it posts a link | |
|||
| subscribersRoleID | the ID of the role to mention when posting a link - you can find this by typing \@role in discord and copying out just the numeric part | |
|||
| developers | array of developer IDs - add a new one by putting a comma at the end of the one above and putting the ID in double quotes | |
|||
|
|||
|
|||
## How to find IDs |
|||
|
|||
- Make sure developer mode is turned on in discord |
|||
- User Settings > Appearance > Developer Mode |
|||
|
|||
| id | how to find | |
|||
|----------------------------|-----------------------------------------------| |
|||
| channelID | right click on the channel > copy ID | |
|||
| serverID | right click on the server name > copy ID | |
|||
| subscribersRoleID | type \@role in discord, copy the numeric part | |
|||
| user ID (to add developer) | right click on user > copy ID | |
|||
|
|||
## Note about subsriptions |
|||
|
|||
For subscriptions to work the bot needs the "Manage roles" permission, and needs to be in a role *higher than* the subscribers role |
@ -0,0 +1,10 @@ |
|||
# Troubleshooting |
|||
|
|||
## Bot can't add users to role |
|||
|
|||
- Make sure the bot's role has the "Manage Roles" permission |
|||
- Make sure the bot's role is higher than the subscribers role |
|||
|
|||
## Other stuff |
|||
|
|||
Feel free to contact me at the email on my GitHub profile :) |
Write
Preview
Loading…
Cancel
Save
issues.context.reference_issue