Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Features, improvements, fixes. #246

Merged
merged 114 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
ba68245
feat: Add French parts of speech, add Dicolink. Add favicons.
vxern Aug 15, 2023
299d60b
fix: Languages not being localised in `/information server`.
vxern Aug 15, 2023
5245f56
feat: Add Swedish.
vxern Aug 16, 2023
c4c50d5
Translated using Weblate (Polish (pol))
vxern Aug 15, 2023
e63c647
Translated using Weblate (German (deu))
Aug 14, 2023
884df69
Translated using Weblate (Greek (ell))
weblate Aug 16, 2023
c882d0e
Translated using Weblate (Finnish (fin))
weblate Aug 16, 2023
83c956a
Translated using Weblate (French (fra))
weblate Aug 16, 2023
8dc2aa0
Translated using Weblate (Hungarian (hun))
weblate Aug 16, 2023
836fc21
Translated using Weblate (Dutch (nld))
weblate Aug 16, 2023
b8c7939
Translated using Weblate (Romanian (ron))
weblate Aug 16, 2023
ccbbff9
Translated using Weblate (Turkish (tur))
weblate Aug 16, 2023
da6e6e3
Translated using Weblate (Armenian (Eastern) (hye))
weblate Aug 16, 2023
10445ba
Translated using Weblate (Armenian (Western) (hyw))
weblate Aug 16, 2023
3ba6647
Translated using Weblate (Norwegian Bokmål (nob))
weblate Aug 16, 2023
58e5d33
Translated using Weblate (Spanish (spa))
weblate Aug 16, 2023
00bd036
Translated using Weblate (German (deu))
weblate Aug 16, 2023
9a9f9f2
Update translation files
Aug 16, 2023
51a8bef
Update translation files
Aug 16, 2023
858ea7a
Update translation files
Aug 16, 2023
65df40b
Update translation files
Aug 16, 2023
d089a0e
Update translation files
Aug 16, 2023
54b9018
Update translation files
Aug 16, 2023
a16e440
Update translation files
Aug 16, 2023
fb2d6e8
Update translation files
Aug 16, 2023
f3bcc32
Update translation files
Aug 16, 2023
5a21531
Update translation files
Aug 16, 2023
802230b
Merge pull request #236 from vxern/translations
vxern Aug 16, 2023
f34bbca
Added translation using Weblate (Swedish (swe))
vxern Aug 16, 2023
e963cda
Update translation files
Aug 16, 2023
72d99b5
Update translation files
Aug 16, 2023
34e425c
Update translation files
Aug 16, 2023
f012c2f
Update translation files
Aug 16, 2023
c786277
Update translation files
Aug 16, 2023
12af11e
Update translation files
Aug 16, 2023
d0f717c
Update translation files
Aug 16, 2023
b2274bb
Update translation files
Aug 16, 2023
1d6d7d7
Update translation files
Aug 16, 2023
5d6e868
Update translation files
Aug 16, 2023
beaa26a
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
3db7908
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
73bca1e
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
c751ee7
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
1456c7b
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
631dcc9
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
799315f
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
ae0dfc7
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
0b623fb
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
f909758
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
558a38d
Added translation using Weblate (Swedish (swe))
weblate Aug 16, 2023
3d7762d
Merge pull request #237 from vxern/translations
vxern Aug 16, 2023
476b536
feat: Add Swedish sentences.
vxern Aug 16, 2023
05c9ba4
chore: Bump version to `3.14.1`.
vxern Aug 16, 2023
a8c13e1
misc: Disable all modules by default when creating guild documents.
vxern Aug 16, 2023
198f9ea
chore: Remove aliases from packages.
vxern Aug 16, 2023
61397e1
chore: Bump version to `3.14.2`.
vxern Aug 18, 2023
5cac507
fix: Warnings not being cached.
vxern Aug 18, 2023
08a989a
misc: Migrate from version 18 to 19.
vxern Aug 18, 2023
bb03fdb
feat: Show command names as the status rather than the bot version.
vxern Aug 18, 2023
4bddffc
chore: Add ISC license generator.
vxern Aug 31, 2023
4707c9b
fix: The `/resources` command not redirecting to the configured URL.
vxern Aug 31, 2023
d0b6a49
fix: Disable memory optimisations.
vxern Aug 31, 2023
13ed752
misc: Temporarily disable the realtime update service.
vxern Aug 31, 2023
9cc295e
fix: Add Finnish sentences.
vxern Sep 1, 2023
2129b45
feat: Add the ability to re-post private messages in chat.
vxern Sep 1, 2023
c450b58
misc: Remove Sentry.
vxern Sep 2, 2023
e53bef5
refactor: Organise languages into files, add a `LOAD_SENTENCES` flag,…
vxern Sep 3, 2023
fd0a0af
feat: Add a Google Translate integration.
vxern Sep 4, 2023
4cfc760
feat: Add a command for language detection.
vxern Sep 5, 2023
96417b9
fix: Use `cld` with pre-built binaries.
vxern Sep 5, 2023
ed90501
fix: Package name not having been updated.
vxern Sep 5, 2023
8b141f6
chore: Move to different RapidAPI provider for Google Translate.
vxern Sep 6, 2023
38eb86a
fix: Wrong string being used.
vxern Sep 6, 2023
2276d12
improv: Make the language parameters on `/translate` optional.
vxern Sep 7, 2023
da546ea
feat: Add a message context menu variant of the translate command.
vxern Sep 7, 2023
b158443
improv: Polish strings used in the `/detect` command.
vxern Sep 7, 2023
77d735e
improv: Remove unnecessary bold formatting.
vxern Sep 7, 2023
61b9dfd
improv: Group the Serbo-Croatian and Filipino languages.
vxern Sep 7, 2023
a4eaa1b
feat: Add Russian and Silesian.
vxern Sep 7, 2023
fb56f2a
Add translations. (#245)
vxern Sep 7, 2023
b110858
improv: Remove empty localisation strings.
vxern Sep 9, 2023
ab0b54b
improv: Add missing log message identifier.
vxern Sep 9, 2023
152495b
improv: Rename `/detect` to `/recognise`.
vxern Sep 9, 2023
38e1dd6
fix: Exclude duplicate localisations to prevent Discord refusing to u…
vxern Sep 9, 2023
43fd1a4
improv: Clean up languages.
vxern Sep 9, 2023
7937dc7
misc: Update contributors.
vxern Sep 9, 2023
46bbb86
improv: Bot information command.
vxern Sep 9, 2023
02bdb92
chore: Bump dependencies, update keywords.
vxern Sep 11, 2023
ea329c8
chore: Move from Rome to Biome.
vxern Sep 11, 2023
3bb80c6
fix: Czech and Slovak being wrongly mapped.
vxern Sep 11, 2023
dae8e49
improv: Rename "Pampanga" to "Kampangan".
vxern Sep 11, 2023
28a2512
improv: Remove "Oriya"; duplicate of "Odia".
vxern Sep 11, 2023
91773d0
improv: Rename "Siswant" to "Swazi".
vxern Sep 11, 2023
6901252
misc: Remove "Rundi" from localisations.
vxern Sep 11, 2023
1b34c51
improv: Group Kinyarwanda and Kirundi.
vxern Sep 11, 2023
c8fd8c4
improv: Update string key.
vxern Sep 11, 2023
d18b599
improv: Move Kapampangan to under the Filipino languages.
vxern Sep 11, 2023
98c1be3
feat: Add Danish.
vxern Sep 30, 2023
8915642
feat: Add Danish sentences.
vxern Oct 1, 2023
6c47137
misc: Remove `noStrictGenericChecks` TS configuration option.
vxern Nov 12, 2023
6ddc54a
misc: Remove adapters.
vxern Nov 12, 2023
d088fcf
misc: Remove `Document` type.
vxern Nov 12, 2023
b6006d4
misc: Remove database file due to no longer being necessary.
vxern Nov 12, 2023
38a3884
misc: Move document structs to the `database` directory.
vxern Nov 12, 2023
5ec439f
misc: Remove database index file.
vxern Nov 12, 2023
00cff9d
chore: Remove the `faunadb` dependency and add `ravendb`.
vxern Nov 12, 2023
3f40e54
misc: Integrate the RavenDB database into the client.
vxern Nov 12, 2023
b58df66
misc: Ignore the database certificate file.
vxern Nov 18, 2023
5f087c2
feat: Update document schemas.
vxern Nov 18, 2023
1f1e53d
feat: Update codebase to work with RavenDB.
vxern Nov 18, 2023
b73f612
Merge pull request #248 from vxern/migrate-to-ravendb
vxern Nov 18, 2023
246f8f9
Add translations. (#249)
vxern Nov 18, 2023
1e9efe9
Add translations. (#250)
vxern Nov 18, 2023
2016c10
Merge branch 'main' of https://github.com/vxern/logos into staging
vxern Nov 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ENVIRONMENT=<production|staging|development>
DISCORD_SECRET=<Discord API secret>
FAUNA_SECRET=<Fauna API secret>
DEEPL_SECRET=<DeepL API secret>
SENTRY_SECRET=<Sentry API secret>
RAPID_API_SECRET=<RapidAPI API secret>
LAVALINK_HOST=<Lavalink host URI>
LAVALINK_PORT=<Lavalink port>
LAVALINK_PASSWORD=<Lavalink password>
SECRET_DISCORD=
SECRET_DEEPL=
SECRET_RAPID_API=
RAVENDB_HOST=
RAVENDB_DATABASE=
LAVALINK_HOST=
LAVALINK_PORT=
LAVALINK_PASSWORD=
LOAD_SENTENCES=
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
dist/
.cert.pfx
.env
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

447 changes: 370 additions & 77 deletions assets/localisations/commands/deu.json

Large diffs are not rendered by default.

570 changes: 0 additions & 570 deletions assets/localisations/commands/ell.json

This file was deleted.

79 changes: 54 additions & 25 deletions assets/localisations/commands/eng-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
"information.description": "Used to display various information.",
"information.options.bot.name": "bot",
"information.options.bot.description": "Displays information about the bot.",
"information.options.bot.strings.whoAmI.title": "Who am I?",
"information.options.bot.strings.whoAmI.description": "I am **Logos**, an application created to offer language-learning Discord communities the highest quality features, such as:",
"information.options.bot.strings.whoAmI.features.roles": "Intuitive role management",
"information.options.bot.strings.whoAmI.features.language": "Translation and morphology look-ups",
"information.options.bot.strings.whoAmI.features.music": "Music playback",
"information.options.bot.strings.howWasIMade.title": "How was I made?",
"information.options.bot.strings.howWasIMade.description": "I am powered by [TypeScript]({language_link}) in [Node.js]({runtime_link}). I interact with [Discord's API]({api_link}) with the help of the [Discordeno]({library_link}) API library.",
"information.options.bot.strings.howToAddToServer.title": "How can you add me to your server?",
"information.options.bot.strings.howToAddToServer.description": "It is not possible to add me to your own community at this point in time. I was made for the purpose of managing a select few language-learning communities, such as [Learn Romanian]({learn_romanian_link}) and [Learn Armenian]({learn_armenian_link}).",
"information.options.bot.strings.amIOpenSource.title": "Am I open-source?",
"information.options.bot.strings.amIOpenSource.description": "No, I am not open-source. There are also no plans to make my codebase public.",
"information.options.bot.strings.concept.title": "What is Logos?",
"information.options.bot.strings.concept.description": "Logos is the go-to Discord bot for language communities. Continuously growing, the bot now serves 8 language communities and over 30,000 users.",
"information.options.bot.strings.function.title": "What does Logos do?",
"information.options.bot.strings.function.description": "Logos aids learners by providing them with useful learning tools, some of which include:",
"information.options.bot.strings.function.features.definitions": "Searching for information about words, including definitions, translations, pronunciation, history, relations, usage notes, and more.",
"information.options.bot.strings.function.features.translations": "Recognition of almost 200 languages, translation in over 140 languages.",
"information.options.bot.strings.function.features.games": "Language games such as \"Pick the correct word\", similar to Clozemaster or Memrise.",
"information.options.bot.strings.function.features.messages": "The ability to propose corrections and submit answers to messages.",
"information.options.bot.strings.function.features.guides": "Guides to linguistic concepts such to the Common European Framework of Reference for Languages (CEFR).",
"information.options.bot.strings.languages.title": "What languages does Logos support?",
"information.options.bot.strings.languages.description": "On top of the plethora of features Logos provides, thanks to a team of amazing volunteers, the bot also has excellent localisation support for 🇫🇷 French, 🇩🇪 German, 🇵🇱 Polish, 🇹🇷 Turkish, 🇳🇴 Norwegian, and 🇷🇴 Romanian, with more localisations on the way for 🇫🇮 Finnish, 🇸🇪 Swedish, 🇭🇺 Hungarian, 🇦🇲 Armenian (Western + Eastern) and 🇳🇱 Dutch.",
"information.options.server.name": "server",
"information.options.server.description": "Displays information about the server.",
"information.options.server.strings.information.title": "Information about **{server_name}**",
"information.options.server.strings.information.title": "Information about {server_name}",
"information.options.server.strings.information.description.description": "Description",
"information.options.server.strings.information.description.noDescription": "No description specified.",
"information.options.server.strings.information.description.members": "Members",
Expand All @@ -35,8 +35,7 @@
"information.options.server.strings.languageTypes.home": "Home",
"information.options.server.strings.languageTypes.target": "Target",

"answer.options.answer.name": "Answer",
"answer.options.answer.description": "Opens an editor, allowing the user to make corrections to a message.",
"answer.message.name": "Answer",
"answer.strings.cannotAnswer.title": "Cannot answer message",
"answer.strings.cannotAnswer.description": "That message cannot be answered.",
"answer.strings.cannotAnswerOwn.title": "Cannot answer own message",
Expand Down Expand Up @@ -69,10 +68,8 @@
"cefr.strings.levels.c3.title": "C2+/C3 (Expert)",
"cefr.strings.levels.c3.description": "On top of the command over language a C2 user would be expected to display, I have extensive knowledge of creative, poetic, technical or unusual uses of vocabulary generally expected of people with a very high command of language.",

"correction.options.partial.name": "Correct",
"correction.options.partial.description": "Opens an editor, allowing the user to make corrections to a message.",
"correction.options.full.name": "Correct All",
"correction.options.full.description": "Opens an editor, allowing the user to make a whole text correction to a message.",
"correction.options.partial.message.name": "Quick Correction",
"correction.options.full.message.name": "Full-text Correction",
"correction.strings.textsNotDifferent.title": "Original and corrected versions are the same",
"correction.strings.textsNotDifferent.description": "The corrected version may not be the same as the original.",
"correction.strings.tooLong.title": "Message too long",
Expand All @@ -83,11 +80,30 @@
"correction.strings.cannotCorrectOwn.title": "Cannot correct own message",
"correction.strings.cannotCorrectOwn.description": "You cannot submit a correction for your own message.",
"correction.strings.failed.title": "Unable to correct",
"correction.strings.failed.description": "Failed to correct the given text.",
"correction.strings.failed.description": "Failed to correct the given message.",
"correction.strings.sureToCancel.title": "Sure to exit?",
"correction.strings.sureToCancel.description": "Are you sure you want to stop making your correction?",
"correction.strings.suggestedBy": "Correction suggested by {username}.",

"recognize.name": "recognise",
"recognize.description": "Given a text, recognises its source language, or mentions likely candidates.",
"recognize.options.text.name": "text",
"recognize.options.text.description": "The text to use for language recognition.",
"recognize.message.name": "Recognise Language",
"recognize.strings.cannotUse.title": "Cannot use message",
"recognize.strings.cannotUse.description": "That message cannot be used for language recognition.",
"recognize.strings.unknown.title": "Unknown language",
"recognize.strings.unknown.description.text": "Could not recognise the language of the given text.",
"recognize.strings.unknown.description.message": "Could not recognise the language of the given message.",
"recognize.strings.textEmpty.title": "Text empty",
"recognize.strings.textEmpty.description": "The text must not be empty or consist solely of whitespace.",
"recognize.strings.fields.likelyMatches.title": "Likely matches",
"recognize.strings.fields.likelyMatches.description.single": "The language is likely to be {language}.",
"recognize.strings.fields.likelyMatches.description.multiple": "The language is likely to be one of:",
"recognize.strings.fields.possibleMatches.title": "Other options",
"recognize.strings.fields.possibleMatches.description.single": "The language is less likely to be {language}.",
"recognize.strings.fields.possibleMatches.description.multiple": "These choices are less likely, but the language could also be one of:",

"game.name": "game",
"game.description": "Pick the correct word out of four to fit in the blank.",
"game.strings.sentence": "Sentence",
Expand All @@ -102,24 +118,37 @@

"translate.name": "translate",
"translate.description": "Translates a text from the source language to the target language.",
"translate.options.text.name": "text",
"translate.options.text.description": "The text to translate.",
"translate.options.from.name": "from",
"translate.options.from.description": "The source language.",
"translate.options.to.name": "to",
"translate.options.to.description": "The target language.",
"translate.options.text.name": "text",
"translate.options.text.description": "The text to translate.",
"translate.strings.languagesNotDifferent.title": "Source and target languages are the same",
"translate.strings.languagesNotDifferent.description": "The target language may not be the same as the source language.",
"translate.message.name": "Translate",
"translate.strings.cannotUse.title": "Cannot translate message",
"translate.strings.cannotUse.description": "That message cannot be translated.",
"translate.strings.textEmpty.title": "Text empty",
"translate.strings.textEmpty.description": "The source text may not be empty.",
"translate.strings.failed.title": "Unable to translate text",
"translate.strings.failed.description": "Failed to translate the given text.",
"translate.strings.invalid.source.title": "Invalid source language",
"translate.strings.invalid.source.description": "The source language is invalid.",
"translate.strings.invalid.target.title": "Invalid target language",
"translate.strings.invalid.target.description": "The target language is invalid.",
"translate.strings.invalid.both.title": "Invalid languages",
"translate.strings.invalid.both.description": "Both the source and target languages are invalid.",
"translate.strings.languagesNotDifferent.title": "Source and target languages are the same",
"translate.strings.languagesNotDifferent.description": "The target language may not be the same as the source language.",
"translate.strings.cannotDetermine.source.title": "Cannot determine source language",
"translate.strings.cannotDetermine.source.description.cannotDetermine": "The source language could not be determined.",
"translate.strings.cannotDetermine.source.description.tryAgain": "Please set it yourself, or try again with a different input.",
"translate.strings.cannotDetermine.target.title": "Cannot determine target language",
"translate.strings.cannotDetermine.target.description.cannotDetermine": "The target language could not be determined.",
"translate.strings.cannotDetermine.target.description.tryAgain": "Please set it manually to the language you'd like to translate to.",
"translate.strings.languageNotSupported.title": "Language not supported",
"translate.strings.languageNotSupported.description": "The {language} language is not supported.",
"translate.strings.failed.title": "Unable to translate text",
"translate.strings.failed.description": "Failed to translate the given text.",
"translate.strings.noTranslationAdapters.title": "Language pair not supported",
"translate.strings.noTranslationAdapters.description": "The selected language pair is not supported.",
"translate.strings.sourceText": "Source Text",
"translate.strings.translation": "Translation",

Expand Down
Loading