Commit graph

73 commits

Author SHA1 Message Date
benji7425 1d22f28506 Added allowSubscriptions check before mentioning when posting 2017-01-22 18:24:18 +00:00
benji7425 5e7f147036 Added check for no errors before confirmation of (un)subscription 2017-01-22 18:23:09 +00:00
benji7425 9306f3992e Fixed subscribing and unsubscribing
Added serverID parameter, and raw error logging when it goes wrong
2017-01-22 18:08:40 +00:00
benji7425 3842f96be3 Fixed role mentioning not working 2017-01-22 17:40:05 +00:00
benji7425 f4a8a40cd5 Removed legacy subscription method
I don't really want to have to include support for it
2017-01-22 17:11:12 +00:00
benji7425 8eb30b6d15 Added addition and removal of users to/from subscribers role
I think I will need to specify server ID as well though? Doesn't appear to be working rn without it
2017-01-22 17:02:05 +00:00
benji7425 5859713ae8 Added boolean toggle for use of subscriptions with the bot 2017-01-22 17:02:05 +00:00
benji7425 15b5611a9a Added deletion of subscription command responses after a delay 2017-01-09 22:55:05 +00:00
benji7425 6bd695e8bb Updated chat commands to be stored in objects along with actions
- Also re-worked the config a bit, altogether making it a bit easier to add config items.
- Added 'developers' list to config to lock developer commands to developers only
2017-01-09 22:00:11 +00:00
benji7425 967b50f006 Fixed multiple users getting unsubscribed when one user unsubscribes 2017-01-08 22:13:02 +00:00
benji7425 051c2a4e99 Added !help command to list available commands 2017-01-08 16:28:26 +00:00
benji7425 d54767eb1b Added ability to request a list of subscribed users in chat 2017-01-08 16:23:24 +00:00
benji7425 4ea0035479 Added prevention for the same user being (un)subscribed multiple times 2017-01-08 16:10:07 +00:00
benji7425 62cc4cc195 Fixed log file reference errors and crash when failing to send message 2017-01-08 16:09:41 +00:00
benji7425 12c02185b6 Refactored use of file names to be specified in config 2017-01-08 16:01:07 +00:00
benji7425 4b2e04c13a Replaced all instances of == with === and updated eslint config 2017-01-08 08:48:47 +00:00
benji7425 650a891cbb Added tagging of subscribed users when link posted 2017-01-08 07:52:34 +00:00
benji7425 8cdca1f616 Fixed username being logged in place of userID 2017-01-08 07:46:02 +00:00
benji7425 c54a48fd50 Added user subscription with subscribers being stored in a json file 2017-01-08 07:45:22 +00:00
benji7425 0e33fb9e1d Added jsonfile npm package 2017-01-08 07:27:51 +00:00
benji7425 6da10d2791 Added logging of event when user requests log file 2017-01-08 07:27:43 +00:00
benji7425 9fdc0fadf5 Added uploading of log file upon request 2017-01-08 07:22:27 +00:00
benji7425 218d2ec40f Fixed detection of links in all channels 2017-01-08 06:44:08 +00:00
benji7425 4c76852c65 Fixed "didn't post" message being logged every single check 2017-01-08 06:37:30 +00:00
benji7425 111639e032 Updated message post fail when disconnected to call onDisconnect func 2017-01-08 06:18:05 +00:00
benji7425 9c89b489d5 Fixed FeedRead being called too early in the feed checking call chain 2017-01-08 05:41:10 +00:00
benji7425 76819d658a Fixed brackets 2017-01-08 05:27:49 +00:00
benji7425 85f10dc99a Updated various functions to use callbacks + updated some function names 2017-01-08 05:24:48 +00:00
benji7425 e86e6f3059 Updated intervals to use a single timer and reassign to its func var 2017-01-08 05:00:07 +00:00
benji7425 61487cb652 Revert "Merged hotfix/reconnect-spam into develop"
This reverts commit b78a62a476886f756d9cddaa62a21a0da8c633f1.
Dedided not to do the whole 4-digit versioning thing
2017-01-08 04:41:47 +00:00
benji7425 e8a88386be Fixed reconnect timer being set to 0 seconds in some instances 2017-01-06 22:09:11 +00:00
benji7425 2be009806d Fixed feedInterval not clearing + added reconnect interval to config
reconnectInterval is optional
2017-01-04 19:53:47 +00:00
benji7425 62f1517767 Updated onDisconnect function to call startup func
Make it so we just reset everything when we get a disconnect event
2017-01-04 19:06:29 +00:00
benji7425 fa0c529a52 Updated cache function to use checkCache function when checking cache 2016-12-30 15:47:33 +00:00
benji7425 f1b599c678 Added youtubeMode check for truncating link at ampersand 2016-12-30 15:47:33 +00:00
benji7425 fb61f2ee90 Refactored comment positions 2016-12-30 15:47:33 +00:00
benji7425 11715d0a3b Updated link standardisation to remove everything after ampersand 2016-12-30 15:47:33 +00:00
benji7425 77514b08ba Fixed a couple more minor issues 2016-12-30 15:47:33 +00:00
benji7425 56c5879936 Fixed errors I missed because eslint wasn't loaded before 2016-12-30 15:47:33 +00:00
benji7425 463b177a2e Refactored link detection and standardisation 2016-12-30 15:47:33 +00:00
benji7425 5d1d43fd56 Added reconnect timer 2016-12-30 15:47:33 +00:00
benji7425 1763d7e068 Removed the need for isFirstRun variable
Store the reference to the timer in a variable, so we can use it to cancel the timer in onDisconnect
2016-12-30 15:47:32 +00:00
benji7425 d15047f34a Refactored some variable names to be more readable 2016-12-30 15:47:32 +00:00
benji7425 1624b3a8b0 Fixed a bunch of wrong references from quick copy-pastes 2016-12-03 01:52:16 +00:00
benji7425 124a8a1668 Fixed this. references that weren't working how I expected 2016-12-03 01:37:02 +00:00
benji7425 0d4e06c0cf Added proper check for first run, so we only execute startup once 2016-12-03 01:04:38 +00:00
benji7425 03e7712be0 Refactored Feed and Links related vars/functions into own objects 2016-12-03 00:56:31 +00:00
benji7425 f5bab14a15 Refactored YouTube and Link related vars and functions into own objects 2016-12-03 00:23:15 +00:00
benji7425 33f325e134 Fixed conversion from full url to share url returning undefined
Also fixed a typo in log.js
2016-12-02 22:11:13 +00:00
benji7425 0766a8351b Added youtube mode toggle with full url -> share url conversion 2016-12-02 21:53:13 +00:00