forked from k8thekat/GatekeeperV2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchangelog
More file actions
328 lines (277 loc) · 17.9 KB
/
changelog
File metadata and controls
328 lines (277 loc) · 17.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
__**Update 4.5.1 and 4.5.2**__
- Hotfix
- Fixed typo in `DB_Update.py` table creation code.
- Removed typo in `/bot banner_settings auto_update`
- Updated versions.
__**Update 4.5**__
- changes to `AMP_server_cog.py`
- relocated and renamed methods to better facilate redability
- relocated banner related functions to `banner_cog`
- fixed edge case where `stopping` an Instance just before Banner Generator fires would cause the loop to crash.
- changes to `whitelist_cog.py`
- added validation of `Whitelist_request_channel` when enabling auto-whitelist. Should warn if channel doesn't exists and or not set.
- moved all whitelist specific settings commands under `/bot`
- changed `/whitelist reply` to `/bot whitelist_reply`.
- clarified doc strings on some commands.
- combined `/server whitelist true` and `/server whitelist false` into `/server settings whitelist`
- You can set Whitelist to True or False in one command.
- Added `Disabled` to hide `Whitelist Open/Closed` on Banners.
- added extensive documentation to `amp_template.py`
- added required methods and notes to indicate this.
- Updated `loader.py`
- Added the ability to support `.disabled` to the end of a cog file and have it be ignored.
- Revamped the entire `cog_auto_loader` to better handle cogs that rely on other cogs.
- Cogs will now require a `Dependencies` var at the top of their files and will use a list to define any required cogs they need to load. If the cog has no dependency set it to `None`
- See `cog_template.py` for examples if needed.
- Created `REGEX.md`
- Here you will find useful information regarding Console Filtering and how to impliment Regex filtering.
- Updated `Commands.md`
- Fixed spelling mistakes and cleaned up formatting of commands.
- Removed documenation for commands that no longer exist; updated documenation for commands that have changed.
- Updated `AMP.py`
- relocated `getWhitelist` to `amp_minecraft.py`, there is a generic method inside of `AMP.py` for linters.
- Changed logic inside of `Login()` to better handle SessionIDs when an Instance is offline.
- Updated `AMP_Console.py`
- Fixed logic inside of `console_filter()` when handling Event type filtering.
- Added two `dev` print statements.
- Added an `_ADScheck()` when console parsing fails to find any entries.
- Updated `AMP_Handler.py`
- Changed layout of server names when using autocompletes
- Removed displaying of `TargetName` when equal to `None`.
- Updated `utils.py`
- Added `sub_group_command_handler()` for adding commands to existing groups when accross seperate files.
- fixed edge case with `__remove_commands()` on first time startup failing to find command group.
- Updated `autocomplete_servers` to better handle partial matches of server names when typing to narrow results.
- Updated `utils_embeds.py`
- Added `InstanceID` field to embed footers.
- Updated `DB.py`
- Moved `DB_Update` to its on file, whew.. that file was getting big.
- Added multiple functions for `BannerGroups` to help interacting with them.
- Added `ServerID` parameter to `GetServer` to help searching.
- Update `discordBot.py`
- Fixed typo in `/bot utils sync` command.
__**HotFix 4.4.9**__
- changed default `DBBanner` blur amount to `0`
- fixed issue in `on_command_error`
- Updated `banner_creator.py`
- fixed issue with `banner_creator.py` raising an issue about `_font_Whitelist_y` not existing. Thanks @IceOfWraith#6057
- changed resolution of Banners in `banner_creator.py` from `1800x600` to `800x270`
- changed `self._font_default_size` from 25 to 12
- fixed issue with `word_wrap` not handling text without a blank space. Too long of Instance Names will show like this `InstaceN...` or similar depending on length.
- fixed issue with `/server banner settings` Modal/View
__**Update 4.4.8**__
- added `Donator` role bypass for Auto whitelist wait time.
- added `/whitelist donator_bypass` command.
__**Update 4.4.7**__
- fixed issue with `whitelist_request_handler()` when attempting to use a non unique IGN. Thanks @Snaggolicious#4987
- split `AMP.py` class's into seperate files for future ease of usage/editing.
- Updated any related `AMP.py` calls and any type checking related to `AMPInstance, AMPHandler` and `AMPConsole`
- fixed logic on `/bot permissions` command
- updated info on `/bot utils clear` command
- cleaned up formatting of `bot_utils_sync` method
- updated the layout of `bot_settings_embed` inside `utils_embeds.py` which will provide a cleaner display for `/bot settings` command
- fixed issue with donator flag not updating on banners. Thanks @FeminalPanda#7879
- updated `commands.md` to reflect the changes.
- began making `sub_group_handler` for adding commands to an existing command group.
- fixed issue with `server banners` not resetting when the discord channel was deleted. Thanks @hotdamnitsaaron#1501
- fixed issue with `whitelisting`, was failing with duplicate IGNs. Thanks @Snaggolicious#4987
- added `intents.jpg` to be used with `Readme.md`
- Servers that are `Hidden` via `/server settings hidden` will be omitted when a `NON STAFF` member uses an autocomplete that provides server names.
- added a `dev` print to `AMP` Login's if they fail.
- fixed typo in `/bot permissions` when attempting to sync commands to the current guild.
- changed formatting of `dev` prints inside of `loader.py`
- added fix for `dict` issues inside of `AMP_server_cog.py` for method `_banner_generator`.
- Edge case when generating banners and creating an new instance at the same time.
- changed formatting of `dev` prints on multiple files for better readability.
- Updated `Display Banners` --
- fixed issue with `Banners` not displaying `Donator Only` when the flag was set.
- split `Donator Only` and `Whitelist Open/Closed` into seperate methods and placed `Donator Only` below Whitelist.
- changed layout of banners slightly; moved the setting `AMP Description` below the Server Name to be used as a possible version indicator/similar.
- changed `AMP Description` to no longer word wrap to next line; it will truncate when it hits the Shadow box on the right of Banners.(Sorry)
- fixed issue with `host` color not updating on banners, DB was using `Host` instead of `host`. Thanks @hotdamnitsaaron#1501
- added `Donator color` to `/server banner settings`.
__**Update 4.4.6**__
- changes to `AMP_server_cog.py`
- Added except `discord.errors.NotFound`
- Removed all `server_display_update.stop()` calls to prevent the task loop from exiting. Thanks @HunterAP and @FeminalPanda#7879
- changes to `discordbot.py`
- Fixed typo in `/bot utils clear` reply message.
- changes to `banner_creator.py`
- Fixed typo in `_validate_image()`
- changes to `whitelist_cog.py`
- Changed message for reply regarding `Auto-Whitelist` being `False` when a user uses `/whitelist request` to better inform players/staff.
- Fixed typo in `whitelist request message` that displays the Buttons/View
- changes to `amp_minecraft.py`
- Changed logic in `check_whitelist()` method for validation.
- changes to `AMP.py`
- Added `type hinting` to `getWhitelist()` method
- Added `Exception` raising when a Server fails to be added to the `DB`
- changes to `utils_embeds.py`
- Changed layout of `server_status_embed()` embed fields for clarity on Instances vs Applications. Thanks @FeminalPanda#7879
- Changed layout of `server_display_embed()` embed fields for clarity on Instances vs Applications. Thanks @FeminalPanda#7879
- changes to `DB.py`
- Updated to `2.7`
- Fixed typo in `server_regex_pattern_table_creation` SQL statement; this is addressed when updating DB to `v2.7`
__**Update 4.4.5**__
- Fixed issue with `/bot utils clear` failing if you do not provide an `amount` parameter.
- Added `Default channel` if not provided to the channel the command was run in and `type` check the `all` parameter
- Updated `Permissions.md` with all new Permission Nodes.
- Updated `AMP_server_cog.py`
- Added `Error handler` for `_embed_generator()` when the Bot User is missing Discord Permissions.
- Added `Error handler` for `_banner_generator()` when the Bot User is missing Discord Permissions.
- Fixed issue with `amp_server_display` not respecting the `Hidden` attr of an AMP Server.
- Updated `whitelist_cog.py`
- Fixed issue with `/server whitelist add` and `/server whitelist remove`. Thanks @Dann
- Added `Whitelist check` back to both methods.
- Currently there is an issue with the AMP API; unable to resolve at this time. See https://github.com/CubeCoders/AMP/issues/806
- Updated `AMP.py` / `amp_minecraft.py`
- Changed parameters for `AMP` object `check_whitelist`, `addWhitelist` and `removeWhitelist`
- Fixed issue with `logger.dev()` statement.
- Updated `AMP_tasks_cog.py`
- Changed logic for when a In-Game message comes through to use the users Avatar first instead of using the Servers avatar Icon.
- Updated `start.py`
- Added someo development args for handling tokens.
__**Update 4.4.4**__
- Fixed issue with `async_rolecheck()` failing if you had the `Moderator` role set by the Bot but nothing higher.
- Removed un-used imports
__**Update 4.4.3**__
- Implemented a Hotfix for `cogs` failing to load and retrying to load the `cog`
- Added `failed_cog_load_list` and will retry failed to load `cogs`
__**Update 4.4.2**__
- Fixed issue with `DBConfig()` object handling causing issues with `GetSetting()` not returning proper values
- Pointed all class Objects to reference `DB.DBConfig`
__**Update 4.4.1**__
- Fixed issue with `-super` not being handled properly by the `DBHandler`
- Changed logic on `line 1056`
__**Update 4.4.0**__
- Refactored `AMP Instance` Permission setup.
- Fixed issue with `Gatekeeper` not setting up proper `AMP` permissions.
- Renamed the AMP bot role to `Gatekeeper`
- Fixed individual `AMP Instance` permission issues.
- Added `check_SessionPermissions` method for startup validation
- Renamed `check_AMPpermissions` to `check_GatekeeperRole_Permissions`
- Renamed `setup_AMPpermissions` to `setup_Gatekeeper_Permissions`
- Cleaned up `dev` logger prints and naming schemes for `info` messages.
- Added check for `-super` arg to bypass Instance permission checks.
- Cleaned up code for `CallAPI` method inside of `AMP.py`
- Added `Exception` clause to `CallAPI` with `Unauthorized Access`
- Removed setting `Super Admin ID` and `Gatekeeper Role ID` from `getRoleIDs`
- New method called `setRoleIDs` to handle setting `Role ID vars`
- Changed `setAMPRolePermissions`
- Now checks API call properly and prints a `critical` if failed to set.
- Added support for `expired` Session IDs with AMP Instances preventing Gatekeeper from interacting with said Instance.
- Refactored `Gatekeeper` AMP Instances to `DB` handling.
- Can now handle `Duplicate Instance Names` if `Friendly Name` is set for one of the Duplicate Instance and is unique.
- Changed how discord based `Autocompletes` for AMP Servers is handled.
- Added `TargetName` to `AMP` classes for helping identify similar named Instances.
- Rebuilt `AMPHandler.get_Instance_Names()` to handle new system.
- Rebuilt `utils.serverparse` to handle the new system.
- Should allow for duplicate `AMP Instance Names`
- Updated `Server List` autocompletes to handle these changes.
- Removed `Display_Description` from `AMPInstances`
- Now uses the description set inside of `AMP` as the description (Usually you set this when creating/Updating the Instance).
- AMP Instance Validation can now notice and handle deleted `AMP Instances` while running.
- Now handles sudden `starting` and `stopping` of Instances.
- Moved `dev` prints to better locations inside of `AMP Console` class
- Refactored `Gatekeeper`
- Added support for `slash types` method parameters. This should provide a better choice list and autocomplete.
- Converted all cogs with `discord User`, `discord Role` and `discord Channel` command parameters to use `slash types` instead of autocompletes.
- Removed all `test()` commands and development related `print` statements.
- Fixed issue with `/bot cog unload` not unloading cogs properly.
- Changes to `DB_server_cog.py`
- Changed `/dbserver swap` to `/dbserver change_instance_id`
- Updated to support new `AMP Server Autocompletes`
- Changed to using Buttons and Views
-Changes to `DB_user_cog`
- Updated logic to handle new `user` parameter type.
- Fixed logic inside of `/user update`.
- Added `Exception` handling for failed SQLite constraints.
- *NEW* To reset/remove a users `mc_ign` or `steamid` pass `None` in as the parameter to the command.
- Removed `mc_uuid` parameter from `/user update`
- Changes to `Permissions_cog.py`
- Updated `typehinting` of class `Permissions`
- Changes to `regex_cog.py`
- Added `@app_commands.describe()` to all parameters of `regex_pattern_add()` to assist users.
- Changed formatting of reply on `regex_pattern_remove()`
- Changed formatting of reply on `regex_pattern_update()`
- Changed formatting of reply on `regex_pattern_list()`
- Changes to `discordBot.py`
- Moved `db_bot_donator` and renamed to `bot_donator`
- Moved `bot_utils_uuid` and nested under `/bot utils`
- Changes to `AMP_Tasks_cog.py`
- Updated `typehinting` of class `AMP_Tasks`
- Changes to `loader.py`
- Removed un-used `imports`
- Updated `typehinting`
- Changes to `utils_embeds.py`
- Switched from using `custom channel/role parse` functions to using `context.guild` object respectively
- Updated `server_info_embed()`
- Added `Whitelist Hidden`
- Renamed `Server Host` to `Host`
- Changed layout of embed
- Updated `server_status_embed()`
- Changed Embed `title` format
- Updated `bot_settings_embed()`
- Removed embed field`Whitelist_emoji_pending` and `Whitelist_emoji_done`.
- Changed embed field `whitelist_channel` to `whitelist_request_channel`.
- Updated `user_info_embed()`
- Fixed issue with not displaying `In Database` if you were not in the Database.
- Changes to `utils_ui.py`
- Added new class `DB_Instance_ID_Swap`
- Used with `/dbserver change_instance_id`
- Has two Buttons `Approve` and `Cancel`
- Changed to `utils.py`
- Removed un-used `imports`
- Removed un-used `prints()`
- Changed formatting on `autocomplete_servers()`
- Updated `typehinting` on class `discordBot()`, `botUtils()`
- Changes to `AMP_server_cog.py`
- Fixed an issue with `/server display` if you changed the `type` it would display both types.
- Removed `autocomplete_message_type()` and replaced with `choices()` to prevent issues.
- Fixed a `type` issue with commands and its `regex` commands.
- Changed to new `AMP Server Autocompletes`
- Updated logic for `amp_server_start()`
- Formatted the time of `display_description` for `amp_server_backup()`
- Changes to `banner_cog.py`
- Removed un-used `imports`
- Updated `typehinting` of class `Banner()`
- Fixed typo with `self.DBConfig()`
- Fixed edge case issue with `_validate_image()` failing if you renamed a Banner file while the bot is running.
- Fixed offset of `Whitelist Closed` display on Banner Images.
- Updated `vars` to reflect changes to `AMP Description`
- Moved the methods `bot_banner()`, `bot_banner_autoupdate()` and `bot_banner_type()` to `banner_cog`
- Renamed `/bot banner` to `/bot banner_settings` to fix issues with group commands.
- Changes to `whitelist_cog.py`
- Updated `typehinting` of class `Whitelist()`
- Removed `events` `on_message_edit()` and `on_message()`
- Updated logic inside of `whitelist_waitlist_handler()` for new Request style
- *NEW* - Replaced `/whitelist channel` with `/whitelist request_channel` for displaying Whitelist Request Approve/Deny messages.
- Players will now use a slash command to handle all whitelist requests.
- Respect all previous whitelist settings.
- Gives `Staff` the ability to `Approve` or `Deny`
- Updated `DB` to match naming scheme.
- Updated `vars` to respect new commands and removed `DB` attrs.
- Removed `/whitelist pending emoji`
- Removed `/whitelist done emoji`
- Updated `DB` to Version `2.6`
- Changed `DB` value `Banner Type` from `str` to `int`
- Changed `DB` value `Permissions` from `str` to `int`
- Changed `DB` value `IP` to `Host`
- Removed `Description` value from `Servers` Table.
- Added `Unique` constrait to `Users` column `MC_IngameName`
- Updated all `Gatekeeper` slash commands to match these changes.
- Updated `bot settings` embed to reflect these changes.
- Changed `GetAllServers()` to return a `dict`
- Changed `GetServer()` to use `InstanceID` instead of `Name`
- Removed `DBConfig` setting `Whitelist_emoji_pending` and `Whitelist_emoji_done`
- Changed `AMP Instance` attr `IP` to `Host`
- Updated all related attr interactions.
- Added Resources
- Added `Minecraft_banner2.jpg` to our selections.
__**Hotfix Update 4.3.8**__
- Fixed Issue with `/bot permissions` failing when used prior to syncing commands.
- Refactored code inside of `discordBot.py` and `DB_user_Cog`
- Fixed `type` issue with `/server donator` command. Thanks @Dann
- Fixed `type` comparison with `/bot settings` command. Thanks @Dann
- Fixed `URL` issue with AMP Instance not displaying the proper Banner Image. Thanks @Ice
- Changed `avatar_urls` for AMP Modules to use Github.