Commit Graph

462 Commits (bb24204b139bc93576d87cd8d8ca4e8ab7d3034d)

Author SHA1 Message Date
Matthew bb0d625f48
Merge branch 'dev' 2020-06-17 19:11:25 -04:00
Matthew 8f52aad3fb
check for pager role changes 2020-06-17 19:11:11 -04:00
Matthew 4642e38a5a
Merge branch 'dev' 2020-06-17 14:50:56 -04:00
Matthew fcd6f02399
fix issue with page 2020-06-17 14:50:44 -04:00
Matthew 0fe603fd0e
Merge branch 'dev' 2020-06-17 12:29:41 -04:00
Matthew d687ad6b79
fix SEN/department paging issue 2020-06-17 12:29:16 -04:00
Matthew 8f03a6f680
Merge branch 'dev' 2020-06-16 22:43:27 -04:00
Matthew f45e9418b3
fix page logging again 2020-06-16 22:43:16 -04:00
Matthew d20bfb2f25
Merge branch 'dev' 2020-06-16 22:40:35 -04:00
Matthew 133ded93c6
changes to log 2020-06-16 22:40:29 -04:00
Matthew f233bd3b12
Merge branch 'dev' 2020-06-16 22:35:34 -04:00
Matthew abe5af2f91
log pages 2020-06-16 22:35:26 -04:00
Matthew 9d4f3da073
log pages 2020-06-16 22:34:17 -04:00
Matthew d4d72735a0
Merge branch 'dev' 2020-06-16 19:44:46 -04:00
Matthew 99f84ea774
update acks 2020-06-16 19:44:36 -04:00
Matthew 9527b84396
Merge branch 'dev' 2020-06-16 19:43:21 -04:00
Matthew 893a712f7a
fix whois issue 2020-06-16 19:43:08 -04:00
Matthew 3428343587
Merge branch 'dev' 2020-06-16 17:38:19 -04:00
Matthew 945010a955
add new pager code 2020-06-16 17:38:06 -04:00
Matthew 24246ccddc
Merge branch 'dev' 2020-06-16 17:32:25 -04:00
Matthew 77f9ca0903
lean whois db queries 2020-06-16 17:32:15 -04:00
Matthew 6522eadf19
fixes to try to fix memory leak 2020-06-16 17:32:01 -04:00
Matthew 9251e12765
Merge branch 'dev' 2020-06-16 12:50:55 -04:00
Matthew 36bc71d272
fix issue with fetching 2020-06-16 12:50:07 -04:00
Matthew dfd40e169a
Merge branch 'dev' 2020-06-15 23:03:49 -04:00
Matthew 7c46539d01
add reference to page recipient messages 2020-06-15 23:03:36 -04:00
Matthew 6b35619e01
Merge branch 'dev' 2020-06-15 23:01:37 -04:00
Matthew 03cd37b5e1
fixes 2020-06-15 23:01:03 -04:00
Matthew cdbd835a76
add reference to page recipient messages 2020-06-15 23:00:49 -04:00
Matthew 231ff21cfa
Merge branch 'dev' 2020-06-15 22:25:25 -04:00
Matthew 8ad1fdc0cc
add message reference link to page 2020-06-15 22:24:37 -04:00
Matthew 3acaefbf1b
Merge branch 'dev' 2020-06-15 21:59:40 -04:00
Matthew 560ec693fa
revert earlier commit 2020-06-15 21:59:35 -04:00
Matthew b60b4d6aff
Merge branch 'dev' 2020-06-15 21:57:54 -04:00
Matthew 50eeb27345
allow page to be used in dms 2020-06-15 21:57:45 -04:00
Matthew c4644b7213
Merge branch 'dev' 2020-06-15 21:50:57 -04:00
Matthew 1c4834aec2
add 'p' as an alias for page 2020-06-15 21:50:45 -04:00
Matthew 14a3fe2430
Merge branch 'dev' 2020-06-15 21:49:47 -04:00
Matthew 5c0b168041
remove platform from whois (keeps erroring someone fix) 2020-06-15 21:49:36 -04:00
Matthew 3e5758e73a
Merge branch 'dev' 2020-06-15 21:44:16 -04:00
Matthew 211a82974a
add paging system 2020-06-15 21:35:40 -04:00
Matthew 1d581a8639
add email transporter to util 2020-06-15 21:34:54 -04:00
Matthew 826f28556e
new config options 2020-06-15 21:34:41 -04:00
Matthew d56ca1be88
Merge branch 'dev' 2020-06-12 16:49:50 -04:00
Matthew 8da3363ea4
add redirect visit counting 2020-06-12 16:49:00 -04:00
Matthew 7d6e4bb6a6
rm logging 2020-06-12 01:28:55 -04:00
Matthew 6f32ef1f90
Merge branch 'dev' 2020-06-12 01:25:59 -04:00
Bsian fbf28dbdb2
More plaform fix improvements
Fixes #11
2020-06-10 16:13:46 +01:00
Bsian e55dcfc7dd
Clean up and improve platform calculation 2020-06-10 14:28:02 +01:00
Bsian 1786239f6a
Fix status checker 2020-06-10 14:13:38 +01:00
Bsian e387d20f44
Clean up bitfield calculations 2020-06-10 14:05:07 +01:00
Bsian 7a3ccd7bd7
Simplication 2020-06-09 23:19:20 +01:00
Matthew f9753b25fb
remove unneeded comments 2020-06-01 19:15:40 +00:00
Bsian 0aea3d1bd2 Fix ban message 2020-05-30 10:09:31 -04:00
Bsian 63ef7afb70 Enhanced handling of errors/information (engineering/communityrelations!12) 2020-05-22 21:20:49 -04:00
Matthew 55e78b0018
Merge branch 'dev' 2020-05-22 02:11:22 -04:00
Matthew b090b5e803
fixes to whois cmd 2020-05-22 02:11:00 -04:00
Matthew 41f9035e51
Merge branch 'master' of gitlab.libraryofcode.org:engineering/communityrelations 2020-05-22 01:53:13 -04:00
Bsian 496c9bb67d
Fix various issues 2020-05-21 12:40:53 +01:00
Bsian 64b97ff9ba
Fixes #9 for previous commit 13b915ab 2020-05-21 09:33:48 +01:00
Bsian 13b915ab5a
Require events at runtine
Fixes #9
2020-05-21 09:26:28 +01:00
Bsian 6278ba6821
Clean up optional chaining 2020-05-21 07:28:04 +01:00
Matthew 2656df909b
update acknowledgements 2020-05-21 01:33:14 -04:00
Bsian ef22cd76dd
Stop debugging messages 2020-05-20 14:52:11 +01:00
Bsian ecaa861135
Send debugs to see reason for ws disconnect 2020-05-20 12:17:47 +01:00
Bsian 46c99ef7bf Apply suggestion to src/commands/djs.ts 2020-05-19 17:49:24 -04:00
Bsian ed9a937155 Apply suggestion to src/commands/djs.ts 2020-05-19 17:49:10 -04:00
Bsian 5225a2bda2 Apply suggestion to src/commands/djs.ts 2020-05-19 17:48:40 -04:00
Bsian 4a30a27038
Fixes #8 2020-05-19 22:34:55 +01:00
DedShot™#9195 721262f7d3 fixing djs command 2020-05-18 23:38:53 -04:00
Matthew 9e88445bbf
Fixes #7 2020-05-17 21:59:56 -04:00
Bsian 97709b9b87
Clean up command 2020-05-17 01:34:45 +01:00
Bsian 9bc1576fc7
Use eris interface 2020-05-17 01:34:44 +01:00
Bsian 830f81b8f6
Remove as many error overrides as possible 2020-05-17 01:34:39 +01:00
DedShot™#9195 89f780ddfb
used await instead of .then().catch() (KhaaZ) 2020-05-14 01:57:11 +01:00
DedShot™#9195 aafed2980c
defined variables type 2020-05-14 01:57:11 +01:00
DedShot™#9195 c5002557fd
Added discord.js docs command 2020-05-14 01:57:10 +01:00
Bsian ad5662c565
Should stop undefined spamming in error channel 2020-05-14 01:46:24 +01:00
Matthew 822034982b
i dont remember what this commit is for 2020-05-14 01:46:23 +01:00
Matthew 586f7cfce0
typings on intervals/autoRelease.ts 2020-05-14 01:46:22 +01:00
Matthew 0a55962e28
fetch all members every 30 minutes 2020-05-14 01:46:21 +01:00
Matthew 2bf98fa923
cache member if not cached already 2020-05-14 01:46:21 +01:00
Matthew 49d3ce608c
dont disable help on err 2020-05-14 01:46:20 +01:00
Matthew b8ff7aa494
fix issue with additem 2020-05-14 01:46:20 +01:00
Matthew 41b006557b
disabled val on set to true 2020-05-14 01:46:19 +01:00
Matthew 8589cd2068
add all events to Client#events Collection<Function> 2020-05-14 01:46:19 +01:00
Matthew 049136adda
add manjaro to additem 2020-05-14 01:46:18 +01:00
Matthew 23a9e745a8
add manjaro to additem 2020-05-14 01:46:18 +01:00
Matthew b4b7deae8e
add operating systems to whois 2020-05-14 01:46:17 +01:00
Matthew 69b604f9f6
update acknowledgements 2020-05-14 01:46:17 +01:00
Matthew 317a752a7c
fix lowercasing issue' 2020-05-14 01:46:16 +01:00
Matthew ca003b5ca4
fix for ban cmd issue 2020-05-14 01:46:15 +01:00
Matthew fee475b409
fix typos 2020-05-14 01:46:15 +01:00
Matthew d5d772d094
fix typos 2020-05-14 01:46:14 +01:00
Matthew a2a144b0b4
allow dashes in redirect links 2020-05-14 01:46:13 +01:00
Matthew fb4dba3313
update configs 2020-05-14 01:46:12 +01:00
Matthew aae9bc1217
add commands to add/delete/list redirect links 2020-05-14 01:46:12 +01:00
Matthew 8b5ed201de
add Redirect db model 2020-05-14 01:46:11 +01:00
Matthew 34d1f585fd
bind server management to Client 2020-05-14 01:46:11 +01:00
Matthew 39a58d086e
add server/route/management API 2020-05-14 01:46:10 +01:00
Matthew df3ae0d3f2
add loc.sh routes and systems 2020-05-14 01:46:10 +01:00
Matthew 44d44ec043
eslint ignore 2020-05-14 01:46:09 +01:00
Matthew 6d0a1fa357
return help on kick if no args specified 2020-05-14 01:46:09 +01:00
hector6704 9f537d104a
remove useless import 2020-05-14 01:46:07 +01:00
hector6704 db82d260e2
add kick command and fix typo in .gitignore 2020-05-14 01:46:07 +01:00
DedShot™#9195 c9d39fff4c
Fix npm command dependencies variable 2020-05-14 01:46:06 +01:00
Matthew 08cf69173e
acknowledgements update 2020-05-14 01:46:05 +01:00
Matthew 0f39b55669
fixes for command arguments 2020-05-14 01:46:04 +01:00
Matthew 60550ee5b8
matt bio change 2020-05-14 01:46:04 +01:00
Matthew b7d2cd0bd8
acknowledgements for ryan 2020-05-14 01:46:03 +01:00
Matthew 8f06ad41e1
npm cmd bug fixes 2020-05-14 01:46:02 +01:00
Matthew 5d77817a72
jsdoc changes on Command class 2020-05-14 01:46:01 +01:00
Matthew 441579420a
changes to help cmd 2020-05-14 01:46:01 +01:00
Matthew 4cd7b0f12f
add help cmd 2020-05-14 01:46:00 +01:00
Matthew e961beb036
acknowledgement changes 2020-05-14 01:46:00 +01:00
Matthew 2ad7d3f506
fixes to whois perm calculations 2020-05-14 01:45:59 +01:00
Matthew c20557a2ad
fixes to npm command 2020-05-14 01:45:58 +01:00
DedShot™#9195 1eb05eff33
changed file name from mdn to npm 2020-05-14 01:45:58 +01:00
DedShot™#9195 8db1b708fa
Added timestamp and footer to the embed 2020-05-14 01:45:57 +01:00
DedShot™#9195 392fadc093
Added npm command 2020-05-14 01:45:56 +01:00
Matthew ed866067b4
fixes for undefined platforms 2020-05-14 01:45:55 +01:00
Matthew bf9ab41fcc
sort whois langs alphabetical order 2020-05-14 01:45:55 +01:00
Matthew 612b48dfa0
add missing c# case in switch statement 2020-05-14 01:45:54 +01:00
Matthew 0308e20528
info command 2020-05-14 01:45:54 +01:00
Matthew 4bf2311091
fix typos 2020-05-14 01:45:53 +01:00
Matthew 8067a8b348
delitem cmd 2020-05-14 01:45:53 +01:00
Matthew 9bd97df10a
fix issue with whois platform 2020-05-14 01:45:52 +01:00
Matthew d48386a7b1
add known languages list to whois 2020-05-14 01:45:51 +01:00
Matthew 2a87dd253c
add command to add known langs 2020-05-14 01:45:51 +01:00
Matthew 15eee459d1
fix typo in roleinfo (@dedshot) 2020-05-14 01:45:50 +01:00
Matthew a8cb977ae1
add new Member model 2020-05-14 01:45:49 +01:00
Matthew a4182db2eb
platform information in whois cmd 2020-05-14 01:45:49 +01:00
Matthew c2085378dd
perms fix (@dedshot) 2020-05-14 01:45:39 +01:00
Bsian 4f55e29094
Fix hex parsing 2020-04-21 18:53:12 +01:00
Matthew b0aadbc73e
ack updates 2020-04-20 14:30:28 -04:00
Matthew fee63d56aa
perm changes 2020-04-20 13:57:08 -04:00
Matthew 4541482cf5
acknowledgement title changes 2020-04-20 13:56:54 -04:00
Matthew d2d3a5c335
remove uuid from log id, use randomBytes(2).toString('hex') instead 2020-04-17 23:05:10 -04:00
Matthew 99d7e6c433
easter egg 2020-04-17 20:31:24 -04:00
Matthew ba03174ce4
enums dont have to explicity declare the #'s 2020-04-17 20:31:15 -04:00
Matthew 3b1cf59c36
better creation date formatting 2020-04-17 13:03:33 -04:00
Matthew 1f75d0ff91
add member count & fix position stuff 2020-04-17 12:59:13 -04:00
Matthew c8bc1b8f69
why is it using message.member 2020-04-17 12:47:26 -04:00
Matthew bf56a69aa4
fix multiple issues with users that have no roles in whois.ts 2020-04-17 12:44:17 -04:00
Matthew ec8eff224b
fix multiple issues with property, message.guild does not exist 2020-04-17 12:33:03 -04:00
Bsian a1e8510073
I can remove this now 2020-04-17 14:49:17 +01:00
Bsian 1a41999e42
more improvements 2020-04-17 14:45:18 +01:00
Bsian 2c6cf8e552
Improvements 2020-04-17 13:42:25 +01:00
Bsian e780777adb Use error function
(cherry picked from commit 41cd6869f5)
2020-04-16 23:37:12 -04:00
Bsian ca662aaa2f Remove imports
(cherry picked from commit f35317c43c)
2020-04-16 23:29:39 -04:00
Bsian b126486a0a Add activity type enum
(cherry picked from commit c72d5c1f1b)
2020-04-16 23:28:28 -04:00
Bsian 65b5cedb4e Remove optional chaining
(cherry picked from commit 99ef533121)
2020-04-16 23:08:08 -04:00
Bsian 9dab377235 Fix everything
Matt please don't change the ECMA target


(cherry picked from commit cfe5e65ed8)
2020-04-16 22:59:53 -04:00
Matthew 4069a20a31
fix various issues with ban/unban commands 2020-04-16 17:58:10 -04:00
Matthew 563db7d9a7
add colors to mod embeds and code refactor 2020-04-16 17:57:50 -04:00
Matthew 9e50426095
add dedshot to list of contribs 2020-04-16 17:56:11 -04:00
Matthew 506deee8ab
fix unban issue 2020-04-16 10:14:13 -04:00
Matthew 3b12b26026
enable rest mode 2020-04-16 10:11:54 -04:00
Matthew 1e5bcc56c0
add unban cmd 2020-04-16 10:09:44 -04:00
Matthew a6ba25801a
temporarily remove badge 2020-04-16 09:59:14 -04:00
Matthew 443d627833
temporarily remove badge 2020-04-16 09:58:06 -04:00
Matthew 257c8f9e28
changes to whois 2020-04-16 09:53:33 -04:00
Matthew b904a00b33
roleinfo command fixes 2020-04-16 09:16:48 -04:00
Matthew e3dd49e3a8
fix issues relating to MR \!3 2020-04-16 09:03:59 -04:00
Matthew 5c1b99129d Merge branch 'master' into 'master'
Added role info command

See merge request engineering/communityrelations!3
2020-04-16 09:00:55 -04:00
Matthew 0c789f6629
fix issues relating to recent merged MR 2020-04-15 23:03:07 -04:00
DedShot™#9195 8678b0878b Used RichEmbed class 2020-04-15 20:14:20 -04:00
Null 11f51b2508
Revert to stricter resolver 2020-04-15 16:00:32 -05:00
Matthew 81fea6cdd0
add usages to all commands 2020-04-15 15:33:46 -04:00
Matthew 88d44fa484
add usage prop 2020-04-15 15:33:39 -04:00
Matthew 11c39b8c65
important commands not disabled on err 2020-04-15 15:33:27 -04:00
Matthew dc09c42923
changes to class & add Moderation class on Util 2020-04-15 15:13:44 -04:00
Matthew 7449aedd92
add eval command 2020-04-15 15:13:29 -04:00
Matthew 4ff55f158c
add game command 2020-04-15 15:13:22 -04:00
Matthew 9b95eabeb4
add ban command 2020-04-15 15:13:16 -04:00
Matthew bfe4c06835
add autorelease interval func 2020-04-15 15:13:06 -04:00
Matthew 14711de6de
check for user perms in message create 2020-04-15 15:12:56 -04:00
Matthew 3233e99a0e
json config 2020-04-15 15:12:43 -04:00
Matthew 33165dd0c9
Moderation model 2020-04-15 15:12:26 -04:00
Matthew 74ddbf1c13
call Client#loadIntervals and Client#loadDatabase on startup 2020-04-15 15:12:17 -04:00
Null 3c6ecb8e76
Add channel resolver 2020-04-15 11:19:46 -05:00
Null 2206a11050
Ignore eslint loops warning/error 2020-04-15 11:02:13 -05:00
Null 104cd69862
Fix member resolver 2020-04-15 10:59:22 -05:00
Null 35ab708dfc
Add ability to resolve roles 2020-04-15 10:57:37 -05:00
Null f26bee8c7a
Improve resolver further
Use startsWith over includes for better accuracy, allow iterations on the query to avoid accidental user input screwing up resolver
2020-04-15 10:42:08 -05:00
Matthew 4a94e56842
fix bsian's shit formatting ;) 2020-04-15 11:29:43 -04:00
Bsian d548b027e1 Include partial resolver 2020-04-15 11:26:03 -04:00
Bsian 7b9d71790d Update whois.ts 2020-04-15 11:19:21 -04:00
Bsian 28fc40763a Formatting 2020-04-15 11:15:50 -04:00
Bsian 012dfb14bc Fixes my fix 2020-04-15 11:15:18 -04:00
Bsian b4ff1ce805 Fixes #2 2020-04-15 11:12:36 -04:00
Matthew f16935da6a Merge branch 'master' into 'master'
Resolver & command update

See merge request engineering/communityrelations!2
2020-04-15 10:35:04 -04:00
DedShot™#9195 4141482c21 Added try/catch block 2020-04-15 09:54:19 -04:00
Ded Shot 446e6db437 Added role info command 2020-04-15 07:25:02 -04:00
Null 784bb76fc9
fix(src/class/Util.ts): Make mentions resolve 2020-04-14 23:19:54 -05:00
Null 0b556655d9
fix(src/commands/whois.ts): Make whois use the full resolver 2020-04-14 23:13:47 -05:00
Matthew 3b0b6e1740
add null to acknowledgements 2020-04-15 00:04:38 -04:00
Null ba328b6c7d
fix(src/class/Util.ts): Fix resolver 2020-04-14 22:52:23 -05:00
Matthew f3199c59d5
add ready event w/ listeners for error events 2020-04-14 21:34:09 -04:00
Matthew b5be5c7d28
wrap messageCreate event in try/catch block 2020-04-14 21:33:58 -04:00
Matthew b194c7e097
wrap all commands in try/catch block 2020-04-14 21:33:47 -04:00
Matthew bc72e484f8
error handling funcs 2020-04-14 21:33:34 -04:00
Matthew d922b15475
badge thumbnails and different emotes for whois 2020-04-14 21:19:00 -04:00
Matthew cbc06a508d
dynamically load emotes from configs/emotes.json 2020-04-14 21:18:44 -04:00
Matthew b8f5356eaf
add acknowledgements information file (json) 2020-04-14 19:03:37 -04:00
Matthew fd9680ae95
update src/class index file 2020-04-14 19:03:20 -04:00
Matthew f121a9bd37
add Util class 2020-04-14 19:03:10 -04:00
Matthew 54151f911c
add RichEmbed class 2020-04-14 19:03:04 -04:00
Matthew 9a1c63a9ca
fix issue with aliases and add further typings to Command 2020-04-14 19:02:55 -04:00
Matthew e0695fe39c
changes to client config 2020-04-14 19:02:28 -04:00
Matthew 708ec88947
add whois command 2020-04-14 19:02:12 -04:00
Matthew bfb7e962c3
Initial commit 2020-04-14 13:15:33 -04:00