Commit Graph

57 Commits

Author SHA1 Message Date
Dawid Wysokiński a6e1894ae1 bot should send notifications about all conquers now 2021-01-16 22:24:11 +01:00
Dawid Wysokiński fa2a5fd713 remove unnecessary log.Println 2021-01-15 20:20:49 +01:00
Dawid Wysokiński c3b06c71a9 replace the deprecated liveEnnoblements query with the ennoblements query 2021-01-15 19:32:36 +01:00
Dawid Wysokiński 1ed9e02f98 update some errror messages 2021-01-13 20:24:52 +01:00
Dawid Wysokiński 44d56d931c update bot status, rename some types/functions 2021-01-13 20:03:50 +01:00
Dawid Wysokiński 7413b6f4ba bump github.com/tribalwarshelp/golang-sdk 2020-11-21 13:13:29 +01:00
Dawid Wysokiński a1ad52b3ac fix grammar mistake 2020-11-06 21:58:32 +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 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 0872ee29ea update go-pg version 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 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 2a1be4856b change default message about gained/lost village 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 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 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 4729cb74d6 change color and title of embed about the conquered village 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 68babe0762 bot should send only one message per channel with all conquers/losess 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 9932fc67c1 cron is now updating bot status every 6 hours 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 92717b6f0a add new command showennobledbarbs [group ID] 2020-10-25 14:57:48 +01:00
Dawid Wysokiński d4c518749e we are sending all conquers in one message | refactor | add find_lang_version_by_tag | bump github.com/tribalwarshelp/shared and golang-sdk 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 1067f8b39d lastEnnoblementAt should subtract from time.Now() 1 minute, not 60 2020-10-25 14:57:48 +01:00
Dawid Wysokiński f63daf39d7 huge refactor 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 449297e71b add group system 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 93bb8b5026 when lastEnnoblement is initializing, it should subtract 1 minute from time.Now() 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 604c932a4c refactor 2020-10-25 14:57:48 +01:00
Dawid Wysokiński a507fe35bc bump github.com/tribalwarshelp/shared 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 873ecefb28 rename utils.LanguageCodeFromWorldName to utils.LanguageTagFromWorldName | bump github.com/tribalwarshelp/shared, github.com/tribalwarshelp/golang-sdk and go-pg 2020-10-25 14:57:48 +01:00
Dawid Wysokiński c944cd5e53 fix app crash when sdk returns nil pointer 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 913cbf7ff0 bump github.com/tribalwarshelp/golang-sdk 2020-10-25 14:57:48 +01:00
Dawid Wysokiński f16e93469a rename tribe model -> observation, cron is checking now bot membership on servers and is detecting closed tribalwars worlds 2020-10-25 14:57:48 +01:00
Dawid Wysokiński cb8adc3c8a cron should store lastEnnobledAt individually for each server 2020-10-25 14:57:48 +01:00
Dawid Wysokiński c3c2491fa8 handler.since shouln't subtract anything from time.Now() 2020-10-25 14:57:48 +01:00
Dawid Wysokiński cf6a26194f add dev.sh, code refactor, add village continent to its name 2020-10-25 14:57:48 +01:00
Dawid Wysokiński f6076f02d2 fix bug with village url 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 79feaeff04 rename AttachHandlers -> Attach 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 85432c140a we're sending now info about conquer using discord embed, change command syntax 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 0d4f3d4b3a update message format 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 5f9b114e13 handler.since should not subtract 30 minutes 2020-10-25 14:57:48 +01:00