Compare commits

...

6 Commits

Author SHA1 Message Date
JeanOUINA 39fc7f2893
Merge pull request #356 from SomeAspy/patch-1
Please do this if your gonna ban people for asking support
2021-10-09 12:47:51 +02:00
Aiden dc3e90125f
Please do this if your gonna ban people for asking support 2021-10-07 17:20:57 -04:00
smartfridge 8ab6645d2c
Merge pull request #324 from SethFalco/chores
EditorConfig + Add Nowegian to Desktop File + Minor Edits
2021-08-25 23:35:51 +02:00
Seth Falco c746a6da1a
minor updates to EmojiModule 2021-08-11 23:31:10 +02:00
Seth Falco b2ffdc088c
i18n: add norwegian comment to desktop file 2021-08-11 23:05:15 +02:00
Seth Falco aee1584dbf
chore: add editorconfig 2021-08-11 23:04:48 +02:00
5 changed files with 45 additions and 19 deletions

23
.editorconfig Normal file
View File

@ -0,0 +1,23 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
curly_bracket_next_line = false
spaces_around_operators = true
[*.{js,ts}]
quote_type = double
[*.{markdown,md}]
trim_trailing_whitespace = false
[*.tsv]
indent_style = tab
[*.yml]
indent_size = 2

View File

@ -17,8 +17,9 @@ let emojiSearch = BDModules.get(e => e.default && e.default.getDisambiguatedEmoj
const appSettings = Lightcord.Api.settings
export default new class EmojiModule {
constructor() {
this.init().catch(err => Utils.err("EmojiModule", "An error occured", err)) // better logging
this.init().catch(err => Utils.err("EmojiModule", "An error occured", err))
}
async init() {
@ -38,7 +39,7 @@ export default new class EmojiModule {
}
if(AutocompleteModule && AutoCompletionTemplates && EmojiModuleQuery && Messages && guildModule && emojiSearch){
console.log(`Patching getAutocompleteOptions of AutoCompletionTemplates`, AutoCompletionTemplates)
Utils.log("EmojiModule", `Patching getAutocompleteOptions of AutoCompletionTemplates`, AutoCompletionTemplates)
const getAutocompleteOptions = AutoCompletionTemplates.getAutocompleteOptions
AutoCompletionTemplates.getAutocompleteOptions = function(e, t, n, r, a){
const value = getAutocompleteOptions.call(this, ...arguments)
@ -82,7 +83,7 @@ export default new class EmojiModule {
return value
}
} else {
console.error(new Error("Couldn't start autocompletion of Lightcord's emojis."))
Utils.err("EmojiModule", "Couldn't start auto-completion of Lightcord's emojis.")
}
/** Emoji display */
@ -110,7 +111,7 @@ export default new class EmojiModule {
if (typeof(node) !== "string") {
newContent.push(node)
continue
};
}
let parsed;
let hasParsed = false

View File

@ -92,7 +92,7 @@ export default class Permissions extends BitField {
* - `MANAGE_WEBHOOKS`
* - `MANAGE_EMOJIS`
* @type {Object}
* @see {@link https://discordapp.com/developers/docs/topics/permissions}
* @see {@link https://discord.com/developers/docs/topics/permissions}
*/
static FLAGS:{
CREATE_INSTANT_INVITE: number,

View File

@ -2,6 +2,7 @@
Name=Lightcord
StartupWMClass=lightcord
Comment[fr_FR]=Un client Discord simple et personalisable
Comment[no]=En enkel - tilpassbar - Discord klient
Comment=A simple - customizable - Discord Client
Exec=/opt/Lightcord/Lightcord
Icon=lightcord

View File

@ -11,6 +11,8 @@
[![ETH](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/papycochon/cryptodonate/master/badges/ethereum.json&style=flat-square)](https://papycochon.github.io/cryptodonate/eth.html?address=0xEFE45F22Ee844bf2Ba0E4d853FA0bC8c028fAfFe&note=https://github.com/Lightcord/Lightcord)
[![LTC](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/papycochob/cryptodonate/master/badges/litecoin.json&style=flat-square)](https://papycochon.github.io/cryptodonate/ltc.html?address=LNTmfMjHJgTHaB7rj8ZuWWuU1XkP2YeGCA&note=https://github.com/Lightcord/Lightcord)
# Lightcord has been abandoned and no longer receives support or updates!
# About
[Lightcord](https://lightcord.org) is a simple and customizable client for Discord.
@ -33,8 +35,7 @@ It includes [BandagedBD](https://github.com/rauenzi/BetterDiscordApp), [Glasstro
## Planned Features
* **Username History** - Keep track of your past usernames!
* **New Plugin Directory** - Easily install or edit themes and plugins!
Lightcord is no longer updated
# Installing