Commit Graph

83 Commits (master)
 

Author SHA1 Message Date
Luther Wen Xu 1ddb32e12b
go: discord/backend: Initialize map to prevent crash 2019-10-20 17:51:32 +07:00
Luther Wen Xu 38e4f1facc
go: discord/modules: Prevent changed votes from causing a vote to pass/reject 2019-10-20 17:25:52 +07:00
Luther Wen Xu c0965b86aa
go: discord/backend: Implement actual trust vote caching 2019-10-20 17:19:14 +07:00
Luther Wen Xu b6685d22bb
go: discord/modules: Do better hashing while obfuscating 2019-10-19 23:01:18 +07:00
Luther Wen Xu 0bec62f96c
go: discord/backend: Add temporary workaround to discordgo's duplication issue 2019-10-19 22:54:18 +07:00
Luther Wen Xu b6feb6a0a2
go: discord/backend: Remove some bias from trust score calculation 2019-10-19 22:48:40 +07:00
Luther Wen Xu 5b33e20640
go: discord/modules: Obfuscate username by default
This allows me to view trust level report without actually knowing the trust level of everyone
2019-10-19 22:47:39 +07:00
Luther Wen Xu ddb7877fca
go: Update discordgo 2019-10-19 22:22:36 +07:00
Luther Wen Xu 6fceb6c50e
go: discord/modules: Fix embed generated by '!votesuggest' command 2019-10-18 23:58:50 +07:00
Luther Wen Xu 430b8be8f5
go: discord/backend: Use RequestGuildMembers as suggested by the Gopher Discord server 2019-10-18 23:56:14 +07:00
Luther Wen Xu ddf9af9557
go: db: Use sqlite3 syntax instead of MySQL extension syntax 2019-10-18 12:29:10 +07:00
Luther Wen Xu 1da6ceb136
go: discord: Rely less on state and more on events 2019-10-18 12:20:26 +07:00
Luther Wen Xu 0bb9092430
go: discord: Better state caching 2019-10-18 12:03:33 +07:00
Luther Wen Xu 7116381000
go: discord/backend: Gracefully handle low global active level 2019-10-18 11:48:50 +07:00
Luther Wen Xu c934af81e2
go: server: Fix unreachable active endpoint 2019-10-18 11:48:14 +07:00
Luther Wen Xu ec43666620
go: discord/backend: Consider active level while calculating trust level 2019-10-18 11:39:20 +07:00
Luther Wen Xu a68565f215
go: discord/modules: Fix '!votesuggest' command 2019-10-18 11:30:30 +07:00
Luther Wen Xu 27158b2afb
go: server: Implement active endpoint 2019-10-17 17:08:57 +07:00
Luther Wen Xu 1963c773d6
go: db: Implement active level 2019-10-17 17:02:35 +07:00
Luther Wen Xu e97bc82606
go: discord/modules: Fix invite colouring 2019-10-17 16:54:12 +07:00
Luther Wen Xu 69235d3f3b
go: db: Fix query of ForceRejection 2019-10-17 16:49:58 +07:00
Luther Wen Xu ea08cbd36e
go: discord/modules: More send to PM channel instead of invalid user 2019-10-17 16:46:34 +07:00
Luther Wen Xu 712af25677
go: discord/modules: Send to PM channel instead of invalid user 2019-10-16 13:42:36 +07:00
Luther Wen Xu 617a131d2d
go: discord/modules: Properly return on error 2019-10-16 13:10:39 +07:00
Luther Wen Xu 68c0afd97c
go: discord/modules: Add limits to change trust 2019-10-16 12:47:36 +07:00
Luther Wen Xu b118fbd477
go: discord/modules: Set limit for validation code length 2019-10-16 12:40:26 +07:00
Luther Wen Xu 34daaa83cb
go: discord/backend: Use Minecraft username as fallback for member search 2019-10-16 12:36:37 +07:00
Luther Wen Xu 7d29b0f923
go: Use actual mention instead of Discord ID in message 2019-10-16 00:25:50 +07:00
Luther Wen Xu 646f904755
go: Do not show admin commands in help message 2019-10-15 23:53:52 +07:00
Luther Wen Xu 093f57b6ee
go: Notify client when user leave voice channel 2019-10-15 23:38:35 +07:00
Luther Wen Xu 4a377f80fc
go: Enforce react by user 2019-10-15 23:35:32 +07:00
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