Commit Graph

52 Commits (d1311d057ff4ca5cc432feefac88181c5a35a4c1)
 

Author SHA1 Message Date
Luther Wen Xu d1311d057f
go: Register voice state update listener 2019-10-15 23:29:23 +07:00
Luther Wen Xu b7625cd6ac
go: Add more debug info 2019-10-15 22:58:58 +07:00
Luther Wen Xu 0477b55885
go: Improve performance by using discordgo caching 2019-10-15 19:06:42 +07:00
Luther Wen Xu b788849469
go: Implement '!batchrole' command 2019-10-15 19:01:36 +07:00
Luther Wen Xu e9c303c1da
go: Prettify vote names before sending them 2019-10-15 18:36:29 +07:00
ALI Hamza 42ef07a1b4
go: add help command and refactor commands.go 2019-10-14 19:34:28 +07:00
Luther Wen Xu 5a31d1fe1e
go: Improve Chinese Translation
Courtesy of zeanngew
2019-10-14 19:22:40 +07:00
Luther Wen Xu e180dec331
go: Unify react implementation 2019-10-14 18:01:36 +07:00
ALI Hamza 9f2f3e8e3b
go: improve English translations 2019-10-13 22:03:31 +07:00
Luther Wen Xu 1ea546edb4
go: Turn vote suggestion into a command 2019-10-13 21:49:58 +07:00
Luther Wen Xu 88087e4c81
go: Sync on WebSocket connection 2019-10-13 21:31:06 +07:00
Luther Wen Xu 4be6408655
go: Refactor trust.go 2019-10-13 21:23:57 +07:00
Luther Wen Xu 6211334d91
go: Move embed creation and audit functions into its own package 2019-10-13 20:39:20 +07:00
Luther Wen Xu d58e32f2b4
go: Connect vote and username update to Kotlin plugin 2019-10-13 20:39:20 +07:00
Luther Wen Xu 69e2a2736c
go: Connect voice state update to the Kotlin plugin 2019-10-13 20:39:20 +07:00
Luther Wen Xu f3c69655e2
go: Implement '!setmcusernae' command 2019-10-13 20:39:20 +07:00
ALI Hamza e9d5730300
kotlin: query user, kickall on WS fail, rename Strings class, and handle sync command 2019-10-13 18:23:20 +07:00
ALI Hamza 0cb7f55d63
go: only allow origins from same network (localhost) 2019-10-13 12:01:35 +07:00
Luther Wen Xu 32ae99c225
go: Replace wait group with channel 2019-10-12 23:49:28 +07:00
Luther Wen Xu 38580f8910
go: Refactor vote*.go 2019-10-12 23:44:36 +07:00
Luther Wen Xu 4619ad1c23
go: Refactor invite.go 2019-10-12 23:33:47 +07:00
ALI Hamza 09073ac4ff
go: create base websocket server 2019-10-12 21:20:23 +07:00
Luther Wen Xu e181a09b4b
go: Refactor messageutil.go 2019-10-12 21:51:33 +07:00
Luther Wen Xu cc2c90c4e3
go: Fix compare command names after forcing lowercase 2019-10-12 20:34:37 +07:00
Luther Wen Xu 0272d11a44
go: Refactor admin commands 2019-10-12 20:33:59 +07:00
ALI Hamza 60af28773a
kotlin+discord: compare command names after forcing lowercase 2019-10-12 18:25:56 +07:00
Luther Wen Xu d1588fffcf
go: Move discord into its own package 2019-10-12 17:45:57 +07:00
ALI Hamza 9332b2688e
kotlin: implement automatic reconnection to websocket on failure 2019-10-12 15:28:06 +07:00
Luther Wen Xu cc5e832859
go: Move db into its own package 2019-10-12 16:07:10 +07:00
Luther Wen Xu 2b5c88059d
go: Give feedback for '!validate' command 2019-10-12 15:08:10 +07:00
ALI Hamza 45297d2c64 kotlin: refactor entire plugin to use mc-kutils, use an object-based configuration system, and convert to okhttp 2019-10-12 06:41:44 +07:00
ALI Hamza caf4dbeb4f kotlin: fix plugin.yml api version 2019-10-12 06:41:44 +07:00
ALI Hamza e4b6db8ebe kotlin: use shadowjar for compiling the plugin 2019-10-12 06:41:44 +07:00
Luther Wen Xu d42b8a7f5b
go: Implement '!validate' command 2019-10-12 14:40:46 +07:00
Luther Wen Xu fa8259fb07
go: Do not include non-members in trust calculation 2019-10-11 23:20:12 +07:00
Luther Wen Xu 8210ac59b2
go: Add admin command to take a peek at trust 2019-10-11 23:13:57 +07:00
Luther Wen Xu 75363ec5a2
go: Clear trust cache when trust has been modified 2019-10-11 23:06:57 +07:00
Luther Wen Xu 423895b376
go: Add votes to audit log 2019-10-11 22:52:28 +07:00
Luther Wen Xu 90b2c369b5
go: Enforce length limit on vote 2019-10-11 22:35:44 +07:00
Luther Wen Xu a8fbc2390f
go: Implement '!trust' command 2019-10-11 22:29:07 +07:00
Luther Wen Xu 80f2d9c220
go: Cleanup file names to prevent confusion 2019-10-11 20:28:33 +07:00
Luther Wen Xu c3de3a0d36
go: Implement trust calculation 2019-10-11 20:25:09 +07:00
Luther Wen Xu 90d03c7738
kotlin: Put plugin.yml in the right location 2019-10-10 22:44:34 +07:00
Luther Wen Xu 0033c68067
go: Implement vote ending 2019-10-10 21:59:00 +07:00
Luther Wen Xu 3709d0698b
go: Close all DB results 2019-10-10 20:40:24 +07:00
Luther Wen Xu 907b6d889b
go: Implement vote creation 2019-10-10 20:35:53 +07:00
Luther Wen Xu 056573fc26
go: Implement basic embed creator 2019-10-10 19:11:56 +07:00
Luther Wen Xu 8d51fb02b8
go: Implement voting
There are currently no ways to start vote so the code cannot be tested currently.
2019-10-10 18:42:02 +07:00
Luther Wen Xu 7fed3d8dd3
go: Separate invitation database code into a separate file 2019-10-10 18:05:28 +07:00
Luther Wen Xu 6b3761d98e
go: Implement invite code creation
It is now possible to create invite code using '!invite <validation code>'
2019-10-09 22:13:59 +07:00