Skip to content

Commit

Permalink
Limit intent
Browse files Browse the repository at this point in the history
  • Loading branch information
EllieJaybee committed Jul 4, 2024
1 parent 98a7984 commit 248592b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ class Model:
secret: secret


def main():
intents = hikari.Intents.ALL
def start_bot():
intents = (
hikari.Intents.ALL_UNPRIVILEGED |
hikari.Intents.GUILD_MEMBERS |
hikari.Intents.MESSAGE_CONTENT
)
bot = hikari.GatewayBot(secret.TOKEN, banner="bot", intents=intents, force_color=True)
logger = logging.getLogger("hikari.gateway")
miru_client = miru.Client(bot)
Expand Down

0 comments on commit 248592b

Please sign in to comment.