Skip to content

Commit

Permalink
PR #47: Subscribe to 'members' intent
Browse files Browse the repository at this point in the history
  • Loading branch information
kwzrd authored Dec 24, 2020
2 parents fb9e7a2 + ae3dc69 commit f3221b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion ryan/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ def run_git(args: List[str]) -> str:
latest_tag = run_git(["describe", "--tags"])
tag_tstamp = run_git(["log", "-1", "--format=%ci", latest_tag]).split()[0] # Date only

bot = Ryan(command_prefix=Client.prefix, activity=discord.Game(f"version {latest_tag}"), help_command=None)
intents = discord.Intents.default()
intents.members = True

bot = Ryan(
command_prefix=Client.prefix,
activity=discord.Game(f"version {latest_tag}"),
help_command=None,
intents=intents,
)

# Instantiate all extensions
bot.load_extension("ryan.exts.corona")
Expand Down
1 change: 0 additions & 1 deletion ryan/exts/seasons.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ async def season(self, ctx: commands.Context, *, season_name: str = None) -> Non
status_react = Emoji.tips_fedora
await ctx.message.add_reaction(status_react)

g_success = None
ch_fail, m_fail = 0, 0

guild_name = decorate_name(ctx.guild.name, season_name)
Expand Down

0 comments on commit f3221b9

Please sign in to comment.