Commit Graph

137 Commits

Author SHA1 Message Date
c0cb58df00
Added CONTRIBUTING.md
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-10-22 08:40:21 +02:00
eff29e9c93 Added a DEFAULT_LANGUAGE System env variable
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-16 00:46:35 +02:00
66e93e5c57 Moved 'createEmbedListLang' to ListLang
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-16 00:41:27 +02:00
32ee3c4ee1 Cleaned some code in the command execution sections
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-16 00:39:40 +02:00
68b3cc941c Updated README
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-14 00:27:33 +02:00
803c6c9527 Updated Database schema
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-13 23:54:02 +02:00
0ccab33131 Updated README
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-13 23:51:05 +02:00
cea9eeb6b7 Added a configuration system, including a default language
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-13 23:50:11 +02:00
3632e77b0b Added a way to catch errors on command execution
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-13 11:53:01 +02:00
720a0596dd Upgraded java to version 16
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-13 11:32:17 +02:00
fd74a955f0 Changed snowflakes from text to long lint
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-13 11:18:34 +02:00
b922d13b7f [FEATURE] Added an invite link in README.
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-09 23:21:35 +02:00
eeb78a90e8 Upgraded discord4j version
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-09 23:21:16 +02:00
a216a7b455 [FEATURE] Finalized possibility to reimport all subtitles from database and bumped version to 0.4-SNAPSHOT
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-17 21:10:30 +01:00
5446e6af38 [WIP] Cleaned code a bit and added a better check to removed subtitle ads
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-17 21:08:58 +01:00
245c9091b7 [WIP] Reimporting now works
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-17 20:39:51 +01:00
4490eff40c [WIP] Now it is possible to get all subtitles from the database (including language and films) and to print them through the logger.
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-17 00:19:24 +01:00
9890b005fd [WIP] Maintenance mode can be enabled through socket calls and client/server communication works fine.
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-16 23:38:05 +01:00
0c23268ed3 [WIP] Communication should be working fine now.
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-16 22:39:58 +01:00
df7d92fc5d [WIP] Better integration of the maintenance mode: added checks and auto switch to normal operations.
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-16 21:55:14 +01:00
af9b13b050 [WIP] Implementing a socket system for governing the bot from another instance, to turn on maintenance mode for example.
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-16 21:30:07 +01:00
9ddf3798ad [FIX] Bumped version to 0.3.7-SNAPSHOT
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-16 14:24:12 +01:00
7e0a62bbfa [FIX] Used min instead of max to delete last element of the parsed subtitles, so the bot wouldn't import the first opensubtitle ad, and the first line of the film, but would import the last of the film, which is the second ad
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-16 14:23:24 +01:00
5b5f42c123 Fixed bad english + dropped Docker user from root to its own user (moviesquotebot)
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-12 21:25:32 +01:00
de2c008e63 Adding eval ssh-agent -s because it is required and I didn't think it was
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-10 21:04:33 +01:00
7bda3392e9 Added deploy phase to gitlab ci
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-10 20:42:15 +01:00
a028dab281 Added KERNEL PANIC message when commands crash unexpectedly, so I can take a look at it later, and it doesn't break the command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-10 12:44:08 +01:00
c134e87d89 Fixed bad gitlab-ci due to previous aborted tests
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-09 11:59:33 +01:00
5b60e8c243 Implemented parsing HTML to remove all HTML tags after parsiong i, u and b
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-09 11:55:35 +01:00
a7c4b8c997 Added more checks because if you search for a movie with an imdb id of a series, then it gives you... a series.
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-05 21:50:02 +01:00
af1c4e4cc3 Added checks because receiving an empty file would make the bot crash (outoufbounds)
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-05 21:29:52 +01:00
02fc4b90f5 Bumped version to 0.3-SNAPSHOT
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 13:38:17 +01:00
c830abcb4d Added search capability in the quote command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 13:37:31 +01:00
07f3d76502 Bumped version to 0.2-SNAPSHOT
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:24:06 +01:00
ceea5fa96d Removed now unused functions from the Command system
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:23:43 +01:00
a366662290 Implemented the new CLI args system to the ListLang command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:22:14 +01:00
9a389f5dd3 Renamed listLangMovie to just listLang
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:09:32 +01:00
4214bcc8a4 Implemented the new CLI args system to the download command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:07:56 +01:00
d1f847bc7a Bumped version to 0.1.5-SNAPSHOT
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 10:12:17 +01:00
8f4eb5349d Implemented a search option to specify a movie's title or imdb identifier
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 10:08:47 +01:00
0ea4385cf0 Removed formatting on usage printing on parsingError
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-03 23:51:18 +01:00
ebd37fa1b5 Implemented a better way to parse options for the Quote command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-03 23:49:13 +01:00
07d094add9 Fixed Snowflake showing as itself instead of the id as a string
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-01 00:20:21 +01:00
b4a4188dc8 Added quoting people when successfully downloading a subtitle
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-31 21:22:01 +01:00
c2a6080cfe Fixed the fact that the importer id and the guild id were flipped
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-31 21:18:30 +01:00
bcf1bb766d Removed useless function in the LanguageManager and also added a way to reconnect when fetching data from OpenSubtitles and getting 401 due to inactivity
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-31 10:22:00 +01:00
5d96a15113 Sorted languages available instead of just getting the list
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 23:57:50 +01:00
2f3ebf0509 Removed the encoding limitation that I had, and also added a lang object to limit the interactions with the database
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 19:12:27 +01:00
d4d6f4a228 Added escaping for bold
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 17:48:33 +01:00
5bd2e7bbe9 Added escaping for italics
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 14:11:07 +01:00