Commit Graph

86 Commits

Author SHA1 Message Date
5511aaca5e use len() to check if a slice is empty 2021-05-06 17:15:10 +02:00
ad99e34658 update pl/en translations 2021-05-06 15:54:44 +02:00
1fe8748b64 update pl/en translations 2021-05-06 15:50:21 +02:00
97f9f3660b rename the utils package 2021-05-06 15:25:09 +02:00
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
ab6bbfa9c2 bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk 2021-05-06 14:42:37 +02:00
dc70752cfe make score in Session.handleTribeCommand more readable (add commas) 2021-02-06 10:36:13 +01:00
3a7c8ff1ae update the author's website 2021-01-16 22:08:32 +01:00
ad55e5c345 [api.defaultError]: update message 2021-01-13 20:48:19 +01:00
44d56d931c update bot status, rename some types/functions 2021-01-13 20:03:50 +01:00
dd112e6536 [coords translation] replace extractAllCoordsFromMessage helper with Regexp.FindAllString 2021-01-08 20:39:48 +01:00
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
506ffc8344 bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk 2021-01-06 17:36:44 +01:00
9c004b79d1 capitalize the first letter of a observations cmd title (monitored -> Monitored) 2020-12-14 19:42:57 +01:00
7413b6f4ba bump github.com/tribalwarshelp/golang-sdk 2020-11-21 13:13:29 +01:00
af2f37e57e rename variables that remained after the github.com/tribalwarshelp/shared update 2020-11-06 20:58:51 +01:00
c26040e802 bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk 2020-11-06 20:39:36 +01:00
cf063441f3 decrease embed size limit 2020-11-04 20:48:52 +01:00
88aa66afdf update github.com/tribalwarshelp/shared 2020-10-31 12:16:21 +01:00
2e7c2eec67 fix: fix grammar mistakes in the English translation 2020-10-27 08:27:35 +01:00
ed3eabc64d rename file worker.go -> handler.go, update tribalwarshelp/shared package, small refactor 2020-10-25 14:58:04 +01:00
711760a568 log system improved 2020-10-25 14:57:48 +01:00
ebf7aaa7ee remove printlns 2020-10-25 14:57:48 +01:00
0872ee29ea update go-pg version 2020-10-25 14:57:48 +01:00
3a7248af58 change the way discord message handlers are called 2020-10-25 14:57:48 +01:00
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
f80fb95efa message ids from all commands related to the observations are moved to constants 2020-10-25 14:57:48 +01:00
cc1d6f29ac move message ids to constants (command: deleteobservation) 2020-10-25 14:57:48 +01:00
db6ff3c1a7 move message ids to constants (command: observe) 2020-10-25 14:57:48 +01:00
a1bd4d55fa move message ids to constants (command: disablelostvillages) 2020-10-25 14:57:48 +01:00
67845ccc58 move message ids to constants (command: lostvillages) 2020-10-25 14:57:48 +01:00
56104b80dc move message ids to constants (command: disableconqueredvillages) 2020-10-25 14:57:48 +01:00
1d2a6d7c0c update en translations | move message ids to constants (command: groups) 2020-10-25 14:57:48 +01:00
c969049f57 move getEmojiForGroupsCommand function to helpers.go | move message ids to constants (command: deletegroup) 2020-10-25 14:57:48 +01:00
b484ab92f8 move message ids to constants (command: addgroup) 2020-10-25 14:57:48 +01:00
4060fb5b60 move message IDs to constants (tribe command) 2020-10-25 14:57:48 +01:00
5bd650a83f move message ids to constants (help command), cron doesn't make an http request when the slice of servers is empty 2020-10-25 14:57:48 +01:00
659a811894 add screenshots, update readme.md 2020-10-25 14:57:48 +01:00
fe75c5a813 fix coordsTranslation formatting 2020-10-25 14:57:48 +01:00
a5af1d2c9b add coords translator feature 2020-10-25 14:57:48 +01:00
82600da64b Groups command should show which options are enabled | update translations 2020-10-25 14:57:48 +01:00
f1d3274e10 rename ShowSelfConquers -> ShowInternals | send embed in new goroutine | make one big request to fetch ennoblements instead of separate requests 2020-10-25 14:57:48 +01:00
9e64f3085b SendEmbed checks now if the field limit has been reached 2020-10-25 14:57:48 +01:00
6b0e4c7a06 add option to enable showing self-conquers 2020-10-25 14:57:48 +01:00
860499461e bump github.com/tribalwarshelp/shared and github.com/tribalwarshelp/golang-sdk, fix panic caused by nil lang version pointer 2020-10-25 14:57:48 +01:00
5ad56f71bf add new command changelanguage 2020-10-25 14:57:48 +01:00
8ed61ffc80 add pl translations | rename UnObserveCmd -> DeleteObservationsCmd, UnObserveLostVillages -> DisableLostVillages, UnObserveConqueredVillages -> DisableConqueredVillages 2020-10-25 14:57:48 +01:00
2ed0efbcf6 the cron messages are fully translatable 2020-10-25 14:57:48 +01:00
3ee900f913 the showennobledbarbs command is fully translatable 2020-10-25 14:57:48 +01:00
4dca0f47d5 the observations command is fully translatable 2020-10-25 14:57:48 +01:00