Commit Graph

199 Commits

Author SHA1 Message Date
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 38325e63d4 update Dockerfile and README.md 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
Dawid Wysokiński a1bd4d55fa move message ids to constants (command: disablelostvillages) 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 67845ccc58 move message ids to constants (command: lostvillages) 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 56104b80dc move message ids to constants (command: disableconqueredvillages) 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 1d2a6d7c0c update en translations | move message ids to constants (command: groups) 2020-10-25 14:57:48 +01:00
Dawid Wysokiński c969049f57 move getEmojiForGroupsCommand function to helpers.go | move message ids to constants (command: deletegroup) 2020-10-25 14:57:48 +01:00
Dawid Wysokiński b484ab92f8 move message ids to constants (command: addgroup) 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 4060fb5b60 move message IDs to constants (tribe command) 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 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
Dawid Wysokiński f14f311daa update README.md 2020-10-25 14:57:48 +01:00
Dawid Wysokiński ae122204ea add Dutch translation 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 57a57ffc16 update README.md 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 659a811894 add screenshots, update readme.md 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 2a1be4856b change default message about gained/lost village 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 59976160e0 update Dockerfile 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 787b33848f correct typo 2020-10-25 14:57:48 +01:00
Dawid Wysokiński c062a6a7ca correct typo 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 58891a5cb7 correct typo 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 3b80cf18b6 update readme.md and Dockerfile, add LICENSE 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 91d98058bc add readme.md 2020-10-25 14:57:48 +01:00
Dawid Wysokiński fe75c5a813 fix coordsTranslation formatting 2020-10-25 14:57:48 +01:00
Dawid Wysokiński a5af1d2c9b add coords translator feature 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 82600da64b Groups command should show which options are enabled | update translations 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 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
Dawid Wysokiński 190d07249d change en translation cron.checkEnnoblements.msgLine 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 9e64f3085b SendEmbed checks now if the field limit has been reached 2020-10-25 14:57:48 +01:00
Dawid Wysokiński ae525cd1e3 make sure that bot will send all conquers 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 6b0e4c7a06 add option to enable showing self-conquers 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 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
Dawid Wysokiński 5ad56f71bf add new command changelanguage 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 8ed61ffc80 add pl translations | rename UnObserveCmd -> DeleteObservationsCmd, UnObserveLostVillages -> DisableLostVillages, UnObserveConqueredVillages -> DisableConqueredVillages 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 2ed0efbcf6 the cron messages are fully translatable 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 3ee900f913 the showennobledbarbs command is fully translatable 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 4dca0f47d5 the observations command is fully translatable 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 5aefeca895 the unobserve command is fully translatable, fix formatting, fix bug with 'unknown' tribe tag 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 5f00ceb412 the observe command is fully translatable 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 9828a6cba9 the lostvillages, conqueredvillages, unobservelostvillages, unobserveconqueredvillages commands are fully translatable 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 7e53a6f745 the deletegroup command is fully translatable 2020-10-25 14:57:48 +01:00
Dawid Wysokiński de1e78459a the addgroup command is fully translatable 2020-10-25 14:57:48 +01:00
Dawid Wysokiński decb8c63a5 the tribe command is fully translatable 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 6026b86d27 the help command is fully translatable 2020-10-25 14:57:48 +01:00