1
0
Fork 0
Commit Graph

619 Commits (11cf7db6c92c7110ee3c9a9bf75b0aafabd64702)

Author SHA1 Message Date
Matthew 613c709e52
Merge branch 'master' of gitlab.libraryofcode.org:engineering/cloudservices-rewrite 2019-10-30 16:23:43 -04:00
Matthew 45ec2d7af1
add punc 2019-10-30 16:23:37 -04:00
Bsian 869867e2c7
Fixed order 2019-10-30 20:19:13 +00:00
Bsian cf0bb51c1f
Fixed some stuff 2019-10-30 20:15:56 +00:00
Matthew 43b787abc0
fix type issue in cwg 2019-10-30 16:11:06 -04:00
Bsian 0e76ca890c
Fixed a few stuff 2019-10-30 18:35:30 +00:00
Bsian 8ab49fda0b
Updated index 2019-10-30 18:21:48 +00:00
Bsian 7174fb248e
Lint 2019-10-30 17:35:29 +00:00
Bsian acf6db96da
Actually reject 2019-10-30 17:34:02 +00:00
Bsian 4b51c2c06e
Lint 2019-10-30 17:19:44 +00:00
Bsian 4defc574a8
Show stderr or stdout if command fails 2019-10-30 17:16:28 +00:00
Matthew b7307ff2da Update src/commands/cwg.ts 2019-10-30 12:11:56 -04:00
Matthew b794f482f3 Update src/commands/cwg.ts 2019-10-30 11:56:38 -04:00
Matthew 80c8328e87 Update src/commands/cwg.ts 2019-10-30 11:53:18 -04:00
Matthew 0c9160a196 Update src/commands/cwg.ts 2019-10-30 11:51:48 -04:00
Matthew 0683424862 Update cwg.ts 2019-10-30 11:46:47 -04:00
Bsian 15575e600e
Added pull command, testing only 2019-10-30 12:53:36 +00:00
Bsian b4a64fde62
Stop erroring 2019-10-30 12:34:57 +00:00
Bsian ff298b690a
Markdown fix 2019-10-30 12:32:40 +00:00
Bsian 4069978ca4
Reordered error messages 2019-10-30 12:31:18 +00:00
Matthew 5dd6204866
add parse command 2019-10-30 00:06:46 -04:00
Matthew 79ca0d82ce
fix markdown; thanks null 2019-10-29 23:25:04 -04:00
Matthew c19092c895
add parse command 2019-10-29 23:22:41 -04:00
Matthew 786a14d126
rm on failure 2019-10-29 20:27:36 -04:00
Matthew d1d324ceb0 Revert "Added support for subcommands"
This reverts commit 3f001eebd5
2019-10-29 20:25:27 -04:00
Matthew 34dc8553f1
fix markdown issue in cwg 2019-10-29 20:20:00 -04:00
Matthew 764337852f
add new includes 2019-10-29 20:17:55 -04:00
Matthew 506e080394
if is cloud domain, delete dns record 2019-10-29 19:37:27 -04:00
Matthew 20337f7215
if is cloud domain, delete dns record 2019-10-29 19:32:04 -04:00
Matthew 8fbb4f1a16
Merge branch 'master' of gitlab.libraryofcode.org:engineering/cloudservices-rewrite 2019-10-29 19:13:13 -04:00
Matthew a017bf6a2e
Add delete subcommand on CWG 2019-10-29 19:12:36 -04:00
Bsian 3f001eebd5
Added support for subcommands 2019-10-29 21:44:12 +00:00
Bsian e7437d4b59
Fixed exec failure 2019-10-29 20:16:08 +00:00
Bsian f0385ce177
Stop creating another message 2019-10-29 20:14:02 +00:00
Bsian 9eca427ce9
Prepare for subcommand 2019-10-29 20:12:01 +00:00
Matthew 29b061eaa6
perms 2019-10-29 16:01:21 -04:00
Bsian 988ca6a2f7
Uncommented success message 2019-10-29 19:51:52 +00:00
Bsian bac8ed4c7c
Fixed CPU leak 2019-10-29 19:43:53 +00:00
Bsian 08bd4645f6
All moderation inserts use util 2019-10-29 18:20:51 +00:00
Bsian 8db1f65691
Fix invalid date showing 2019-10-29 17:43:26 +00:00
Bsian c9fed63480
Switched type parser to switch 2019-10-29 17:35:41 +00:00
Bsian 3ac6b28e38
Diagnosing issue 2019-10-29 17:29:14 +00:00
Bsian b5e143a31c
Don't try and specify time if not locking 2019-10-29 17:22:06 +00:00
Bsian 72764f7e14
Promise rejection wording change 2019-10-29 16:25:41 +00:00
Bsian cd187b21f9
Promise return fix 2019-10-29 16:24:15 +00:00
Bsian 7752c1c37a
Added ready message in console 2019-10-29 16:15:20 +00:00
Bsian 1dc0ee955b
Stop function loader from erroring 2019-10-29 16:13:40 +00:00
Bsian cff8402f7d
Added message to show which function failed 2019-10-29 16:09:12 +00:00
Bsian 3579bdd137
Added modlog creation to utils 2019-10-29 15:41:33 +00:00
Bsian 36afa4f2ed
Added usage 2019-10-29 01:13:14 +00:00
Matthew e784b124e8
edit responses for cwg and add data command 2019-10-28 20:40:24 -04:00
Matthew c4ae1d272c
edit responses for cwg and add data command 2019-10-28 20:33:30 -04:00
Matthew a2f0794838
edit responses for cwg and add data command 2019-10-28 20:30:55 -04:00
Matthew 5e556a5c4f
edit responses for cwg and add data command 2019-10-28 20:24:56 -04:00
Matthew 566b0e5936
fix typo in deleteaccount 2019-10-28 19:56:00 -04:00
Matthew ed482c9707
re-add handleError func 2019-10-28 19:54:36 -04:00
Matthew 06ab35e61d
change .us to .org 2019-10-28 19:50:45 -04:00
Matthew 4803ecece7
change .us to .org 2019-10-28 19:50:39 -04:00
Matthew 88a619134a
fixes to cwg and catch 2019-10-28 19:46:03 -04:00
Matthew f3668d06ab
rm console log statements 2019-10-28 19:14:49 -04:00
Matthew 6509466474
rm console log statements 2019-10-28 19:10:26 -04:00
Matthew 24d2da237e
rm console log statements 2019-10-28 19:09:42 -04:00
Bsian 27fa7152e1
diag 2019-10-28 22:13:45 +00:00
Bsian 633d667386
fixed function loading error 2019-10-28 22:11:08 +00:00
Bsian 6992d88a3f
Fixed nginx conf reader 2019-10-28 22:09:15 +00:00
Bsian bd14446390
Fixed cert parsing again again 2019-10-28 22:06:56 +00:00
Bsian 6a154cc4b9
Fixed cert parsing again 2019-10-28 22:05:54 +00:00
Bsian bf48fcbf96
Fixed cert parsing 2019-10-28 21:58:44 +00:00
Bsian 9703ecb4b6
Fixed more shit 2019-10-28 21:45:31 +00:00
Bsian 935d2147d3
Fixed shit 2019-10-28 21:41:23 +00:00
Bsian 1a5e72f94f
Fixed command not loading prefix 2019-10-28 21:29:06 +00:00
Bsian 51a70f84ff
Added usage 2019-10-28 21:06:52 +00:00
Bsian 602a5f854f
Again 2019-10-28 20:21:57 +00:00
Bsian 246944c3ce
Stuff? 2019-10-28 20:21:04 +00:00
Matthew 92f2ca71da
should be setINterval not settimeout 2019-10-28 00:34:42 -04:00
Matthew 79dea2e413
add lock time in embed 2019-10-28 00:30:09 -04:00
Matthew 239dd2469a
add lock time in embed 2019-10-28 00:28:20 -04:00
Matthew dcde1d685c
add lock time in embed 2019-10-28 00:27:43 -04:00
Matthew a451f153bd
Set interval time on checkLock 2019-10-28 00:26:14 -04:00
Matthew 8ccd1cac1f
delete msg for lock/unlock 2019-10-28 00:23:39 -04:00
Matthew 63d40da837
fix lock 2019-10-28 00:17:25 -04:00
Matthew 3f18050a27
fix lock issue 2019-10-28 00:12:16 -04:00
Matthew 8fea499597
fix lock issue 2019-10-28 00:11:01 -04:00
Matthew 08039c6e94
fix lock issue 2019-10-28 00:07:42 -04:00
Matthew 07001f5b6e
remove debug from modlogs 2019-10-28 00:01:30 -04:00
Matthew 998229b494
should set locked to false 2019-10-28 00:01:05 -04:00
Matthew 8d8fa5b10e
fix deprecation warning 2019-10-28 00:00:54 -04:00
Matthew d95e4d8efe
should set locked to false 2019-10-28 00:00:07 -04:00
Matthew 9e88f0f8fe
modlogs cmd fix 2019-10-27 23:58:41 -04:00
Matthew a87e108ee6
type should be number 2019-10-27 23:54:55 -04:00
Matthew c1e10751e3
modlogs cmd fix 2019-10-27 23:53:15 -04:00
Matthew 2ec2c95d9c
modlogs cmd fix 2019-10-27 23:51:26 -04:00
Matthew d6f274d4a7
modlogs cmd fix 2019-10-27 23:47:55 -04:00
Matthew 7def0455cf
fix typo 2019-10-27 23:42:08 -04:00
Matthew 661beb37b2
logID in schema should be string not number 2019-10-27 23:39:44 -04:00
Matthew a263b91551
push changes to fix query in lock/unlock 2019-10-27 23:38:23 -04:00
Matthew 353a4d8137
fix issue in loadFunctions func 2019-10-27 23:08:45 -04:00
Matthew f59aa9dc1e
rm messageCreate issue 2019-10-27 23:07:55 -04:00
Matthew 3addb4e71a
fix mongoose deprecation warnings 2019-10-27 23:05:24 -04:00
Matthew 8c887192e9
commands that req arguments w/o produce help cmd 2019-10-27 23:04:49 -04:00
Matthew 62be202a2e
trim whitespace from args 2019-10-27 23:04:35 -04:00
Matthew 9bf9440f68
fix command handler issue 2019-10-27 22:52:22 -04:00
Matthew 0f38580f1d
fix command handler issue 2019-10-27 22:50:41 -04:00
Matthew 51c8b12e84
fix command handler issue 2019-10-27 22:41:34 -04:00
Matthew e0750f7787
fix command handler issue 2019-10-27 22:38:02 -04:00
Matthew 663f87debd
fix command handler issue 2019-10-27 22:35:43 -04:00
Matthew 5ae041c1c7
fix command handler issue 2019-10-27 22:31:14 -04:00
Matthew b87f1c112b
fix command handler issue 2019-10-27 22:30:10 -04:00
Matthew 8a6b6de78f
fix command handler issue 2019-10-27 22:27:03 -04:00
Matthew 98fdd4f8ab
fix emoji in store 2019-10-27 22:26:50 -04:00
Matthew 2274959f8a
please 2019-10-27 22:25:39 -04:00
Matthew 301f9ff9a2
please 2019-10-27 22:22:40 -04:00
Matthew 8bcd610462
please 2019-10-27 22:21:16 -04:00
Matthew 2a473b65b7
sysinfo cmd embed updates 2019-10-27 22:16:27 -04:00
Matthew 9297b4774e
remove inline 2019-10-27 22:14:10 -04:00
Matthew bfde851211
fix richembed shit again 2019-10-27 22:11:57 -04:00
Matthew ec5717d0a7
fix command handler again 2019-10-27 22:03:05 -04:00
Matthew c177fb88ee
another fix attempt on eval 2019-10-27 21:54:22 -04:00
Matthew 5ce5b7f64d
another fix attempt on eval 2019-10-27 21:53:16 -04:00
Matthew d8049997a2
another fix attempt on eval 2019-10-27 21:50:11 -04:00
Matthew 1ca97d4627
another fix attempt on eval 2019-10-27 21:47:43 -04:00
Matthew e83fc9865d
another fix attempt on eval 2019-10-27 21:46:29 -04:00
Matthew 1ed93f3b5f
another fix attempt on eval 2019-10-27 21:42:39 -04:00
Matthew baf65952f6
comment shit out of eval 2019-10-27 21:40:39 -04:00
Matthew 995c5c58aa
attempt to fix RichEmbed 2019-10-27 21:36:10 -04:00
Matthew a859352f39
attempt to fix RichEmbed 2019-10-27 21:34:22 -04:00
Matthew c1975d6a91
attempt to fix RichEmbed 2019-10-27 21:31:06 -04:00
Matthew 6312fa243e
get config from client, also remove weird evalMessage thing 2019-10-27 21:23:56 -04:00
Matthew 9e5c9da6e2
add checks for presence of user/role perms before checking 2019-10-27 21:21:26 -04:00
Matthew 0633564e6a
perms is declared but never used 2019-10-27 21:18:20 -04:00
Matthew e9ae7c3ee8
a 2019-10-27 21:14:28 -04:00
Matthew c4fd0c000b
rm prompt 2019-10-27 21:09:40 -04:00
Matthew aaeb35719f
add event listeners on process in client 2019-10-27 20:54:48 -04:00
Matthew fae3eab310
prefix should come from client, not directly 2019-10-27 20:51:02 -04:00
Matthew 72e9750d2d
would help if we'd actually inst the client 2019-10-27 20:47:45 -04:00
Matthew 308320e28e
would help if we'd actually inst the client 2019-10-27 20:43:48 -04:00
Matthew 798b770d08
would help if we'd actually inst the client 2019-10-27 20:30:03 -04:00
Matthew 9eda0e9b4c
would help if we'd actually inst the client 2019-10-27 20:23:01 -04:00
Matthew 38a840e5e5
get prefix from client, not directly 2019-10-27 20:19:55 -04:00
Matthew f83b62e3c0
set process title on constructor 2019-10-27 20:17:29 -04:00
Matthew 52050f41f3
should be .org, not .us 2019-10-27 20:17:15 -04:00
Matthew 700a146856
connect success log 2019-10-27 20:10:23 -04:00
Matthew d9c1c635e7
connect to mongo 2019-10-27 20:09:31 -04:00
Matthew a633aeda9b
add functions index 2019-10-27 20:05:32 -04:00
Matthew 80d64295ee
add sysinfo cmd and dataConversion func 2019-10-27 20:05:20 -04:00
Bsian 3942e96524
Tidy and added delete account util 2019-10-27 16:22:49 +00:00
Bsian 26f0b6ef15
Added create alias 2019-10-27 15:18:18 +00:00
Bsian bc37ac49f3
Added message collector 2019-10-27 15:15:13 +00:00
Bsian 99a9a3911d
Created command 2019-10-27 01:08:42 +00:00
Bsian e71b449554
Revert "Created command"
This reverts commit dd35b8a9d2.
2019-10-27 01:07:36 +00:00
Bsian dd35b8a9d2
Created command 2019-10-27 01:06:57 +00:00
Bsian ca5cef1554
Removed duplicate utils file 2019-10-27 01:19:49 +01:00
Bsian 3b3fcf2513
Improvements to code 2019-10-26 19:32:56 +01:00
Bsian 851af0f0bf
Fix, don't error if dm fails 2019-10-26 18:34:29 +01:00
Bsian 80d1f5a7dd
Don't throw an error if user cannot be DMed 2019-10-26 18:33:05 +01:00
Bsian 8623ea288a
Typo fix 2019-10-26 18:30:51 +01:00
Matthew 706fb20aa9
final finishes on checkLock func 2019-10-26 13:07:05 -04:00
Matthew 2c8dc89a42
use util binded to client on messageCreate 2019-10-26 13:06:54 -04:00
Matthew be6866fbd3
add unlock command 2019-10-26 13:06:40 -04:00
Matthew 06c4390549
use util binded to client on modlogs 2019-10-26 13:06:32 -04:00
Matthew 57f5c2a01c
type on lock should be 2 2019-10-26 13:06:18 -04:00
Matthew 7a025137e4
update /src index 2019-10-26 00:04:00 -04:00
Matthew 5badce06e3
Add nginx.conf file for CWG cmd template 2019-10-26 00:03:49 -04:00
Matthew 70c7e3f698
bind new util and new load functions func 2019-10-26 00:02:44 -04:00
Matthew 38f48bb324
change 'account' field in Moderation model to 'username' 2019-10-26 00:02:26 -04:00
Matthew 0e13cfaf48
change 'account' field in Account model to 'username' 2019-10-26 00:02:09 -04:00
Matthew 93c5cd0df9
Add interval func to check lock expirations 2019-10-26 00:01:49 -04:00
Matthew 74877e8a34
update Moderation model references in modlogs cmd 2019-10-26 00:01:31 -04:00
Matthew 420e1f8d2e
[WIP] cwg command for nginx handling 2019-10-26 00:01:16 -04:00
Matthew d33f92bf62
add new lock command 2019-10-26 00:01:02 -04:00
Matthew 4659cc5cd3
mv 2019-10-26 00:00:44 -04:00
Matthew 8388caacb4
move Util to class dir 2019-10-26 00:00:29 -04:00
Bsian f3347c95e0
index 2019-10-22 01:22:33 +01:00
Bsian 27c4202eb7
Added exec command 2019-10-22 01:21:25 +01:00
Bsian e1d7237bce
Better code 2019-10-22 01:20:11 +01:00
Bsian 22bd0f5a42
Added haste upload fallback so command won't disable 2019-10-22 01:02:01 +01:00
Bsian 2f0795b34f
Added eval command 2019-10-22 00:58:56 +01:00
Bsian d082b7be70
Added string splitter 2019-10-22 00:58:20 +01:00
Bsian 92e4ee5cc8
Fixes 2019-10-22 00:57:58 +01:00
Matthew dd0468dc9c
Merge branch 'master' of gitlab.libraryofcode.org:engineering/cloudservices-rewrite 2019-10-20 22:49:10 -04:00
Matthew 983d9898eb
add mail transporter to Util 2019-10-20 22:48:48 -04:00
Matthew 8d9f6555ae
remove unused const 2019-10-20 22:48:38 -04:00
Bsian e4abb5c61d
Added missing colon MATT 2019-10-21 01:35:18 +01:00
Bsian 07d639c82d
Added announce command 2019-10-21 01:26:49 +01:00
Bsian bd343d19e0
Added command exports cuz matt's lazy af 2019-10-21 01:25:39 +01:00
Matthew bd26d64a1c
email user upon domain bind 2019-10-20 20:14:04 -04:00
Matthew 1d056e0f6e
send additional DM to user if domain is custom for setup instrc 2019-10-20 19:51:44 -04:00
Matthew c62daba11b
lint 2019-10-20 19:43:32 -04:00
Matthew 6f9dc911ef
Merge branch 'master' of gitlab.libraryofcode.org:engineering/cloudservices-rewrite 2019-10-20 19:29:44 -04:00
Matthew 75e5b57be3
add cwg command and types for x509, bind signale to client 2019-10-20 19:28:35 -04:00
Bsian 78a858fbed
lint 2019-10-20 18:08:16 +01:00
Bsian e283251e68
Added error catcher 2019-10-19 14:32:10 +01:00
Bsian 384adae1de
Added message info for errors 2019-10-19 14:31:54 +01:00
Bsian 129c44090d
Finished help command 2019-10-19 13:31:06 +01:00
Bsian e07ebed824
Added embed field splitter 2019-10-19 12:47:08 +01:00
Bsian 126c3253b2
a lot of random stuff 2019-10-18 23:16:32 +01:00
Matthew R ba27e52e0c
Util class is binded to client, no need to make another class for each command 2019-10-17 15:43:32 -04:00
Matthew R 83452d5184
new domain/port model for CWG 2019-10-17 15:43:10 -04:00
Matthew R 5dbd497f88
find Domain model to client.db 2019-10-17 15:42:57 -04:00
Bsian 5a7b05d040
Import export tidy 2019-10-16 01:34:13 +01:00
Bsian c2fa0ce2a7
Removed unnecessary function 2019-10-16 00:25:09 +01:00
Bsian 92d0417221
Removed unnecessary error sender 2019-10-16 00:12:16 +01:00
Bsian 371b3328de
Added error handler 2019-10-16 00:10:37 +01:00
Bsian 17760f41c4
Linting 2019-10-15 23:44:46 +01:00
Bsian ce01f5d290
Stopped command from triggering if command is disabled 2019-10-15 23:41:29 +01:00
Bsian 4b4410caf9
Added modlogs command 2019-10-15 23:39:08 +01:00
Bsian 61871d7e86
Added command enabled status 2019-10-15 23:38:49 +01:00
Bsian d6bfa0e1fa
Added RichEmbed constructor 2019-10-15 22:18:05 +01:00
Bsian e872f08815
More linting config fixes 2019-10-15 19:03:40 +01:00
Bsian 529147f925
Linting config fix? 2019-10-15 18:45:48 +01:00
Bsian a0294ae44b
Utils fix 2019-10-15 15:42:42 +01:00
Matthew R 91099b6942
lint 2019-10-14 23:37:04 -04:00
Matthew R 8156657a95
add basis for lock command and emoji stores 2019-10-14 23:35:30 -04:00
Matthew R f921cdd20e
Merge branch 'master' of gitlab.libraryofcode.us:engineering/cloudservices-rewrite 2019-10-14 23:35:11 -04:00
Matthew R 5609894812
changes and utility funcs 2019-10-14 23:32:37 -04:00
Bsian a211bc3dbd
Added command handler 2019-10-15 00:04:07 +01:00
Bsian 1dd2052b0c
Command stuff 2019-10-14 23:02:04 +01:00
Bsian 83edaf8281
Command stuff 2019-10-14 23:01:05 +01:00
Matthew R 9baaa20b00
Initial Commit 2019-10-14 15:46:10 -04:00