Commit Graph

107 Commits

Author SHA1 Message Date
Dawid Wysokiński 1c6c6da482 qf 2021-10-06 20:05:54 +02:00
Dawid Wysokiński e77866c918 replace UpdateStatus with UpdateGameStatus 2021-07-18 12:54:41 +02:00
Dawid Wysokiński c5ef99b731 [WIP] 2021-07-18 12:38:57 +02:00
Dawid Wysokiński 0e45085f2a fix wrong indexes in splitEmbedFields 2021-07-18 12:34:16 +02:00
Dawid Wysokiński 1833d3893d remove unnecessary +1 in splitEmbedFields 2021-07-18 12:26:07 +02:00
Dawid Wysokiński c3eb4b42d1 the discord package - commands shouldn't be exported 2021-07-18 12:21:02 +02:00
Dawid Wysokiński f11d4b061e delete helpers.go from the message package 2021-07-18 10:17:45 +02:00
Dawid Wysokiński 4b777e24af use MessageEmbedFieldBuilder.SetName where it's possible 2021-07-18 10:07:49 +02:00
Dawid Wysokiński 62c84e58c4 move hndlrChangeLanguage from observations.go to admin_commands.go 2021-07-18 10:02:13 +02:00
Dawid Wysokiński 9c71cb2ce9 add check if procTranslateCoords implements messageProcessor 2021-07-18 09:53:19 +02:00
Dawid Wysokiński 65b6557697 add a new interface - messageProcessor 2021-07-18 09:52:13 +02:00
Dawid Wysokiński 2adeb4f686 cleanup 2021-07-18 09:14:26 +02:00
Dawid Wysokiński 2f02cbe32d public commands - refactor 2021-07-18 08:53:12 +02:00
Dawid Wysokiński e6ff6fa509 observation commands refactor 2021-07-18 08:48:04 +02:00
Dawid Wysokiński 0d669e0c01 add a command handler interface, refactor - coords translation commands 2021-07-18 08:11:18 +02:00
Dawid Wysokiński fee7b101cd Session.SendEmbed refactor 2021-07-18 07:41:54 +02:00
Dawid Wysokiński 937e50b23e remove unnecessary allocation in isValidLanguageTag, rename getEmojiForGroupsCommand -> boolToEmoji 2021-07-18 07:28:48 +02:00
Dawid Wysokiński 704928d9b4 rename MessageEmbed -> MessageEmbedFieldBuilder 2021-07-18 07:25:16 +02:00
Dawid Wysokiński 438cca1146 remove comments from embed.go 2021-07-17 17:43:13 +02:00
Dawid Wysokiński 35d9a563fb rename one variable in Session.SendEmbed, remove comments from embed.go 2021-07-17 17:42:38 +02:00
Dawid Wysokiński b4b3379765 rename the models package -> model, return normal types instead of interfaces (repositories) 2021-07-17 17:22:36 +02:00
Dawid Wysokiński 5511aaca5e use len() to check if a slice is empty 2021-05-06 17:15:10 +02:00
Dawid Wysokiński ad99e34658 update pl/en translations 2021-05-06 15:54:44 +02:00
Dawid Wysokiński 1fe8748b64 update pl/en translations 2021-05-06 15:50:21 +02:00
Dawid Wysokiński 97f9f3660b rename the utils package 2021-05-06 15:25:09 +02:00
Dawid Wysokiński 1c9c5c6f6a delete dev.sh and helpers from the models package, use gopgutil to build conditions in filters 2021-05-06 14:55:51 +02:00
Dawid Wysokiński ab6bbfa9c2 bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk 2021-05-06 14:42:37 +02:00
Dawid Wysokiński dc70752cfe make score in Session.handleTribeCommand more readable (add commas) 2021-02-06 10:36:13 +01:00
Dawid Wysokiński 3a7c8ff1ae update the author's website 2021-01-16 22:08:32 +01:00
Dawid Wysokiński ad55e5c345 [api.defaultError]: update message 2021-01-13 20:48:19 +01:00
Dawid Wysokiński 44d56d931c update bot status, rename some types/functions 2021-01-13 20:03:50 +01:00
Dawid Wysokiński dd112e6536 [coords translation] replace extractAllCoordsFromMessage helper with Regexp.FindAllString 2021-01-08 20:39:48 +01:00
Dawid Wysokiński 99aa44cdba - update translations
- [tw!tribe and tw!observe] look for a tribe by tag or id (not just by id)
2021-01-08 20:15:11 +01:00
Dawid Wysokiński 506ffc8344 bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk 2021-01-06 17:36:44 +01:00
Dawid Wysokiński 9c004b79d1 capitalize the first letter of a observations cmd title (monitored -> Monitored) 2020-12-14 19:42:57 +01:00
Dawid Wysokiński 7413b6f4ba bump github.com/tribalwarshelp/golang-sdk 2020-11-21 13:13:29 +01:00
Dawid Wysokiński af2f37e57e rename variables that remained after the github.com/tribalwarshelp/shared update 2020-11-06 20:58:51 +01:00
Dawid Wysokiński c26040e802 bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk 2020-11-06 20:39:36 +01:00
Dawid Wysokiński cf063441f3 decrease embed size limit 2020-11-04 20:48:52 +01:00
Dawid Wysokiński 88aa66afdf update github.com/tribalwarshelp/shared 2020-10-31 12:16:21 +01:00
Dawid Wysokiński 2e7c2eec67 fix: fix grammar mistakes in the English translation 2020-10-27 08:27:35 +01:00
Dawid Wysokiński ed3eabc64d rename file worker.go -> handler.go, update tribalwarshelp/shared package, small refactor 2020-10-25 14:58:04 +01:00
Dawid Wysokiński 711760a568 log system improved 2020-10-25 14:57:48 +01:00
Dawid Wysokiński ebf7aaa7ee remove printlns 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 0872ee29ea update go-pg version 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 3a7248af58 change the way discord message handlers are called 2020-10-25 14:57:48 +01:00
Dawid Wysokiński dc3dd073aa rename struct discord.EmbedMessage -> discord.MessageEmbed | message ids from all commands related to coords translation are moved to constants 2020-10-25 14:57:48 +01:00
Dawid Wysokiński f80fb95efa message ids from all commands related to the observations are moved to constants 2020-10-25 14:57:48 +01:00
Dawid Wysokiński cc1d6f29ac move message ids to constants (command: deleteobservation) 2020-10-25 14:57:48 +01:00
Dawid Wysokiński db6ff3c1a7 move message ids to constants (command: observe) 2020-10-25 14:57:48 +01:00