Commit Graph

20 Commits (d541f65804fa38a3309a8283713e4cfdbfa9fd90)

Author SHA1 Message Date
Kami cce0f21ab0 Improved platform logging and Custom VC
- Platform logs associated to a message are now associated with platform-specific IDs
- Fixes for `!customvc`, specifically in relation to commands execution.
  - Optimized logic
  - Fixed limits for certain values like VC users limit
  - Better code integrity: now self-references as a Cog
- Lots of minor other tweaks, adjustments, and improvements
2025-03-06 17:53:54 +01:00
Kami 50617ef9ab Finalized database restructure, fixed Twitch auth issue
- Ironed out some issues with registering certain events into the database
- Fixed the old Twitch re-auth token issue. Now automatically renews it and initiates the bot with it.

These issues has been pestering the project a while now as they required some workarounds. Should work smoother from here on out! (I hope ...)
2025-03-01 23:14:10 +01:00
Kami d0313a6a92 Massive UUI system and database overhaul
- Dynamic accounts association
  - Accounts can now be associated dynamically, allowing multiple accounts on the same platform to be associated to the same UUID.
  - UUI system now supports any platform, eg. YouTube, TikTok, Kick, Twitter, etc.
  - More robust user lookups with enhanced fault tolerance and allowance for NULL data.
  - Optimized database structure with two tables for user association; one for UUID and basic info, another for platform-specific details.
- Enhanced logging functionality: logs now prefix the calling function.
- Enhanced user lookup debug messages, allowing easy query inspection and data validation.
- Other minor fixes
2025-03-01 01:54:51 +01:00
Kami 78e24a4641 Added Twitch channel game get function
- This function returns the game being played on the specified channel
- Implemented into quotes system: quotes automatically contain game name if quoted from a Twitch channel
- Defaults to None if channel is not live
- Discord quotes keep old logic: quotes never contain game information
2025-02-16 18:07:07 +01:00
Kami 17fbb20cdc Added Twitch multi-channel support
- OokamiPup v2 can now enter sevaral community channels
  - Individual channel settings. By default, all commands are disabled
  - Channel-specific settings allow enabling/disabling individual commands per channel
- Added a few more fun facts
- Minor tweaks and bugfixes
2025-02-16 15:30:17 +01:00
Kami 01f002600c Bug tracking, minor tweaks
- Moved some constants to the globals.Constants class
  - config_data: returns the configuration dictionary
  - bot_start_time: returns the epoch bot start time
  - primary_discord_guild: returns a dict like `{"object": primary_guild_object, "id": primary_guild_int}`
  *These is initiated under globals.constants*
- Improved on docstrings. Google format now standard
- Reverted all commands to purely textual until further notice
  - `/help` is still additionally available as a slash command
2025-02-12 23:14:40 +01:00
Kami 66f3d03bc6 Program logging rework
- Logging functionality has been centralised to 'globals.log'

This should allow easy log integration into subsystems without the need of passing the function everywhere *phew*
2025-02-11 10:47:48 +01:00
Kami 623aeab9fb Fixed (?) a Twitch authentication crash
- The automatic token refresh function crashed after a certain time since last token refresh. This should fix it
2025-02-10 13:02:51 +01:00
Kami 3ad6504d69 mini-vacation update
- Dual logging
  - logfile.log = permanent logfile
  - cur_logfile.log = current run logfile
- Improved logging in general
- Expanded howl replies
- Discord activity logging
- Twitch & Discord chat logging
- Discord slash commands implementation (partial)
- Config file improvements
  - Toggleable log levels
  - Settings separated (terminal and file output)
  - Nesting of associated values
- Fixed "!ping" not fetching correct replies
- Several other minor and major fixes, tweaks and improvements
2025-02-10 12:32:30 +01:00
Kami 8074fbbef4 Cleaned log code lines 2025-02-04 13:35:25 +01:00
Kami faea372a56 Cleaned up command execution debug logs for better readability 2025-02-03 23:01:40 +01:00
Kami 5730840209 Improved !help
- Ensured it fetches the correct commands and help configuration depending on platform.
- Removed certain duplicate checks that intiated functions twice or repeated value asignments.
- Added the @monitor_cmd flag to commands, allowing easy command runtime diagnostics, including execution time.
2025-02-03 22:02:56 +01:00
Kami 28d22da0c1 + Added !help command
- Removed built-in Discord !help command

NOTE:
Basic implementation.
Help text is defined in:
  - dictionary/help_twitch.json
  - dictionary/help_discord.json
2025-02-03 14:14:30 +01:00
Kami 780ec2e540 - Added basic SQL functionality with SQLite fallback.
- Added basic "Quote" system/command using the new DB feature.
2025-02-03 12:17:55 +01:00
Kami a83e27c7ed - Added automatic reconnect after refreshing Twitch bot token.
- Added reattempt limit to prevent Twitch ratelimiting.
2025-02-02 12:39:53 +01:00
Kami c4e51abc5b Specified platform commands were initiated from 2025-02-02 00:32:38 +01:00
Kami dd05c26b5d Added command logging to console 2025-02-02 00:29:58 +01:00
Kami 1b9a78b3d6 Added basic permissions system.
Needs to be vastly improved
2025-02-01 23:38:13 +01:00
Kami 82aec3dc5f - Reverted logging to a simpler terminal-only
- Added log levels in config.json
- Reworked requirements.txt
2025-02-01 20:50:54 +01:00
kami 6ba99c9a57 Upload files to "/" 2025-02-01 11:06:33 +00:00