Version 2.6 (2024-03-21)
Changed
- Lurking Command
- Improved lurking command to calculate months accurately.
- Refactored code logic for month calculation.
-
Old code:
days, seconds = divmod(elapsed_time.total_seconds(), 86400) hours, remainder = divmod(seconds, 3600) minutes, seconds = divmod(remainder, 60) -
New code:
days = elapsed_time.days months = days // 30 days %= 30 hours, seconds = divmod(elapsed_time.seconds, 3600) minutes, seconds = divmod(seconds, 60)
-
- Refactored code logic for month calculation.
- Updated
saypart of the command to include months.-
Old code:
periods = [("days", int(days)), ("hours", int(hours)), ("minutes", int(minutes)), ("seconds", int(seconds))] -
New code:
periods = [("months", int(months)), ("days", int(days)), ("hours", int(hours)), ("minutes", int(minutes)), ("seconds", int(seconds))]
-
- Improved lurking command to calculate months accurately.
Followage Command Changes
- Enhanced followage command to handle cases where user does not follow the channel.
- Added condition to display appropriate message when user does not follow.
-
Old code:
chat_logger.info(f"{target_user} has been following for: {followage_text}.") await ctx.send(f"{target_user} has been following for: {followage_text}") -
New code:
if f"{target_user} does not follow {CHANNEL_NAME}" in followage_text: await ctx.send(f"{target_user} does not follow {CHANNEL_NAME}.") chat_logger.info(f"{target_user} does not follow {CHANNEL_NAME}.") else: chat_logger.info(f"{target_user} has been following for: {followage_text}.") await ctx.send(f"{target_user} has been following for: {followage_text}")
-
- Added condition to display appropriate message when user does not follow.
Logging
- Added logging for followage command.
- Logged followage text using
api_logger.-
Code:
api_logger.info(f"{followage_text}")
-
- Logged followage text using
Thank you for your feedback and support!
As always, your feedback is appreciated. Please report any issues, bugs, or suggestions in the #ticket-info channel on our Discord server. You can also submit feedback and bug reports directly on our website: https://botofthespecter.com/feedback.php