Skip to content

Commit 0294461

Browse files
committed
chore: bump version 0.5.4
1 parent 84c0dc1 commit 0294461

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ All notable changes to KoalaBot will be documented in this file. A lot of these
33
administrators
44

55
## [Unreleased]
6+
7+
## [0.5.4] - 12-04-2022
68
### Base
79
- Add scheduled activities for bot owners
810

@@ -266,6 +268,7 @@ manually if a timer is deleted.
266268
- `removeProtectedRoleColour <role_str>` Removes a role, via ID, mention or name, from the list of protected roles.
267269

268270
[Unreleased]: https://github.com/KoalaBotUK/KoalaBot/compare/v0.1.0...HEAD
271+
[0.5.4]: https://github.com/KoalaBotUK/KoalaBot/compare/v0.5.3...v0.5.4
269272
[0.5.3]: https://github.com/KoalaBotUK/KoalaBot/compare/v0.5.2...v0.5.3
270273
[0.5.2]: https://github.com/KoalaBotUK/KoalaBot/compare/v0.5.1...v0.5.2
271274
[0.5.1]: https://github.com/KoalaBotUK/KoalaBot/compare/v0.5.0...v0.5.1

koala/cogs/base/cog.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from koala.db import get_all_available_guild_extensions, give_guild_extension, \
2323
get_enabled_guild_extensions, remove_guild_extension
2424
from . import core
25-
from .utils import list_ext_embed
25+
from .utils import list_ext_embed, AUTO_UPDATE_ACTIVITY_DELAY
2626
from .log import logger
2727

2828
# Constants
@@ -44,7 +44,6 @@ def convert_iso_datetime(argument):
4444
raise BadArgument('Invalid ISO format "%s", instead use the format "2020-01-01 00:00:00"' % argument)
4545

4646

47-
4847
class BaseCog(commands.Cog, name='KoalaBot'):
4948
"""
5049
A discord.py cog with general commands useful to managers of the bot and servers
@@ -141,7 +140,7 @@ async def activity_remove(self, ctx, activity_id: int):
141140
activity.time_end)
142141
await ctx.send(result)
143142

144-
@tasks.loop(seconds=1.0)
143+
@tasks.loop(minutes=AUTO_UPDATE_ACTIVITY_DELAY)
145144
async def update_activity(self):
146145
"""
147146
Loop for updating the activity of the bot according to scheduled activities

koala/cogs/base/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Constants
2222
DEFAULT_ACTIVITY = discord.Activity(type=discord.ActivityType.playing, name=f"{koalabot.COMMAND_PREFIX}help koalabot.uk")
23-
23+
AUTO_UPDATE_ACTIVITY_DELAY = 1
2424
# Variables
2525

2626

koalabot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Bill Cao", "Aqeel Little", "Charlie Bowe", "Ponmile Femi-Sunmaila",
1313
"see full list of developers at: https://koalabot.uk/"]
1414
__license__ = "MIT License"
15-
__version__ = "0.5.3"
15+
__version__ = "0.5.4"
1616
__maintainer__ = "Jack Draper, Kieran Allinson, Viraj Shah, Stefan Cooper, Otto Hooper"
1717
__email__ = "koalabotuk@gmail.com"
1818
__status__ = "Development" # "Prototype", "Development", or "Production"

0 commit comments

Comments
 (0)