Commit Graph

44 Commits

Author SHA1 Message Date
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 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 44d56d931c update bot status, rename some types/functions 2021-01-13 20:03:50 +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 cf063441f3 decrease embed size limit 2020-11-04 20:48:52 +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 a5af1d2c9b add coords translator feature 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 6b0e4c7a06 add option to enable showing self-conquers 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 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 634088712e add initial i18n configuration 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 449297e71b add group system 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 340c1f69e9 add three new commands: unobserveconqueredvillages, unobservelostvillages, author 2020-10-25 14:57:48 +01:00
Dawid Wysokiński 9d77cbbd70 rename discord commands: delete -> unobserve, list -> observations 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 cf6a26194f add dev.sh, code refactor, add village continent to its name 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 4115558ee7 refactor, add default values to messageData constructor 2020-10-25 14:57:48 +01:00
Dawid Wysokiński a724fe29b9 v0.2 2020-10-25 14:57:48 +01:00
Dawid Wysokiński dcf839ed77 rename package 2020-06-02 09:00:40 +02:00
Dawid Wysokiński 135709e698 memberHasPermission should first change if guild is stored in state, if not should make api request to discord 2020-05-31 13:39:51 +02:00
Dawid Wysokiński 05fed1756a guild owner should be able to use bot commands without admin group 2020-05-31 13:34:24 +02:00
Dawid Wysokiński 9ec3357780 v0.1 2020-05-30 12:43:11 +02:00
Dawid Wysokiński 7c4104c9ad add lostvillages/conqueredvillages commands functionality 2020-05-30 11:19:00 +02:00
Dawid Wysokiński 6865a2d113 add list command functionality 2020-05-30 11:07:02 +02:00
Dawid Wysokiński fa7dda85e4 add DeleteCommand functionality 2020-05-30 10:54:28 +02:00
Dawid Wysokiński 24d784f6ae add tribe/server model and pg repository, add discord package 2020-05-30 10:35:45 +02:00