Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #65 from yannickgloster/fixed-intents
Browse files Browse the repository at this point in the history
Fixed Intents
  • Loading branch information
lexesj authored Oct 11, 2020
2 parents 088044b + ac72c85 commit 9cbfad2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
__version__ = '1.0.6'
__dev__ = 745000319942918303


class Discord_10man(commands.Bot):
def __init__(self, config: dict, startup_extensions: List[str]):
# TODO: Change prefix to . when syncing
super().__init__(command_prefix='.', case_insensitive=True, description='A bot to run CSGO PUGS.',
help_command=commands.DefaultHelpCommand(verify_checks=False))
self.intents.members = True
self.intents.presences = False
help_command=commands.DefaultHelpCommand(verify_checks=False),
intents=discord.Intents(
guilds=True, members=True, bans=True, emojis=True, integrations=True, invites=True,
voice_states=True, presences=False, messages=True, guild_messages=True, dm_messages=True,
reactions=True, guild_reactions=True, dm_reactions=True, typing=True, guild_typing=True,
dm_typing=True
))
self.token: str = config['discord_token']
self.bot_IP: str = config['bot_IP']
self.servers: List[CSGOServer] = []
Expand Down

0 comments on commit 9cbfad2

Please sign in to comment.