From b0aadbc73e42b3865b1cefdeec98e2c6c12b321f Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 20 Apr 2020 14:30:28 -0400 Subject: [PATCH 1/2] ack updates --- src/configs/acknowledgements.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/configs/acknowledgements.json b/src/configs/acknowledgements.json index 463ecda..c7e92d3 100644 --- a/src/configs/acknowledgements.json +++ b/src/configs/acknowledgements.json @@ -97,12 +97,19 @@ { "name": "Hector", "id": "377781496292835339", - "title": "Core Team", + "title": "Associate", "emailAddress": "hector@staff.libraryofcode.org", "gitlab": "https://gitlab.libraryofcode.org/Hector", "github": "https://github.com/Hector6704", "bio": "Hi there, I'm the developer of Delta, the Discord bot. I'm a free-time French JavaScript developer. I hope you'll enjoy LOC!" }, + { + "name": "Realitus", + "id": "156450671338586112", + "title": "Associate", + "github": "https://github.com/Realitus", + "bio": "A hobbyist software developer with some rather strange ideas, and even stranger implementations." + }, { "name": "KhaaZ", "id": "179908288337412096", From 4f55e2909405b9608eedd1d445cf95d580ba8fdb Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 21 Apr 2020 18:53:12 +0100 Subject: [PATCH 2/2] Fix hex parsing --- src/class/Util.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index f31a4ca..10a0702 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -119,11 +119,7 @@ export default class Util { } public decimalToHex(int: number): string { - const red = (int && 0x0000ff) << 16; - const green = int && 0x00ff00; - const blue = (int && 0xff0000) >>> 16; - const number = red | green | blue; - const asHex = number.toString(16); - return '#000000'.substring(0, 7 - asHex.length) + asHex; + const hex = int.toString(16); + return '#000000'.substring(0, 7 - hex.length) + hex; } }