Skip to content

Commit

Permalink
Merge pull request #124 from DMcP89/hotfix/privlaged-intents
Browse files Browse the repository at this point in the history
Removing intents while application is being processed
  • Loading branch information
DMcP89 authored Oct 12, 2023
2 parents f5b715f + 10cab8e commit 63764ff
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Harambot
_An interactive Yahoo Fantasy sports bot for Discord._

![Python](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10-blue) ![License](https://img.shields.io/badge/License-MIT-green) ![Build](https://img.shields.io/github/actions/workflow/status/DMcP89/harambot/pytest.yml?branch=main) ![Version](https://img.shields.io/badge/version-0.3.2--Beta-red)
![Python](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10-blue) ![License](https://img.shields.io/badge/License-MIT-green) ![Build](https://img.shields.io/github/actions/workflow/status/DMcP89/harambot/pytest.yml?branch=main) ![Version](https://img.shields.io/badge/version-0.3.3--Beta-red)

![harambot-logo](https://raw.githubusercontent.com/DMcP89/harambot/main/assests/harambot-1.jpg)

Expand Down
14 changes: 7 additions & 7 deletions harambot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
logger.setLevel("INFO")

intents = discord.Intents.default()
intents.members = True
intents.messages = True
intents.message_content = True
# intents.members = True
# intents.messages = True
# intents.message_content = True

bot = commands.Bot(command_prefix="$", description="", intents=intents)
bot.remove_command("help")
Expand Down Expand Up @@ -50,10 +50,10 @@ async def on_guild_join(guild):
logger.info("Joined {}".format(guild.name))
if not Guild.select().where(Guild.guild_id == str(guild.id)).exists():
logger.info("Guild not configured!")
await guild.owner.send(
"""Thank you for adding Harambot to your server!
Please complete your setup by running the /configure command!"""
)
# await guild.owner.send(
# """Thank you for adding Harambot to your server!
# Please complete your setup by running the /configure command!"""
# )


def run():
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "harambot"
version = "0.3.2"
version = "0.3.3"
description = "A Yahoo Fantasy Sports bot for Discord"
authors = ["DMcP89 <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -29,7 +29,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8"
"discord.py" = "^2.1.0"
"discord.py" = "^2.3.2"
dynaconf = "^3.1.11"
peewee = "^3.15.4"
cachetools = "^5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
name: harambot-database
property: connectionString
- key: VERSION
value: "0.3.2-Beta"
value: "0.3.3-Beta"

databases:
- name: harambot-database
Expand Down

0 comments on commit 63764ff

Please sign in to comment.