Skip to content

Commit

Permalink
Merge pull request #37 from jackra1n/freegames_improvements
Browse files Browse the repository at this point in the history
Add free games automatic sending
  • Loading branch information
jackra1n authored Mar 23, 2024
2 parents 94fc7b2 + 57ff3af commit 004a319
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 49 deletions.
2 changes: 1 addition & 1 deletion core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
from . import constants as constants
from .bot import Substiify as Substiify

__version__ = "0.96"
__version__ = "0.97"
__author__ = "jackra1n"
2 changes: 2 additions & 0 deletions core/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ async def on_command(self, ctx: commands.Context):
async def on_guild_join(self, guild: discord.Guild):
await self.bot.get_channel(EVENTS_CHANNEL_ID).send(f"Joined {guild.owner}'s guild `{guild.name}` ({guild.id})")
await self._insert_server(guild)
for channel in guild.channels:
await self._insert_channel(channel)

@commands.Cog.listener()
async def on_guild_update(self, before: discord.Guild, after: discord.Guild):
Expand Down
Loading

0 comments on commit 004a319

Please sign in to comment.