def __init__(self, **kwargs): self.config = Config() intents = discord.Intents.none() intents.guilds = True intents.messages = True intents.reactions = True intents.message_content = True super().__init__( help_command=helpcommand.EmbedHelpCommand(), case_insensitive=True, command_prefix=self.config.prefix, owner_id=int(self.config.owner_id), intents=intents, description="Bot for following twitter users on discord", allowed_mentions=discord.AllowedMentions(everyone=False), **kwargs, ) self.logger = log.get_logger("Siniara") self.start_time = time() self.twitter_blue = int("1da1f2", 16) self.db = maria.MariaDB(self) self.cogs_to_load = [ "cogs.commands", "cogs.errorhandler", "cogs.asyncstreamer", "cogs.twitter", ]
def __init__(self, **kwargs): super().__init__(**kwargs) self.default_prefix = prefix self.logger = logger self.start_time = time() self.global_cd = commands.CooldownMapping.from_cooldown( 15, 60, commands.BucketType.member) self.db = maria.MariaDB(self) self.cache = cache.Cache(self) self.version = "4.0"
def __init__(self, **kwargs): self.config = Config("config.toml") super().__init__( command_prefix=self.config.prefix, owner_id=self.config.owner_id, **kwargs ) self.logger = logger self.start_time = time() self.global_cd = commands.CooldownMapping.from_cooldown( 10.0, 60.0, commands.BucketType.member ) self.db = maria.MariaDB(self)
def __init__(self, extensions, default_prefix, **kwargs): super().__init__( help_command=EmbedHelpCommand(), activity=Activity(type=ActivityType.playing, name="Booting up..."), command_prefix=util.determine_prefix, case_insensitive=True, allowed_mentions=AllowedMentions(everyone=False), max_messages=20000, heartbeat_timeout=120, owner_id=133311691852218378, client_id=500385855072894982, status=Status.idle, intents= Intents( # https://discordpy.readthedocs.io/en/latest/api.html?highlight=intents#intents guilds=True, members=True, # requires verification bans=True, emojis_and_stickers=True, integrations=False, webhooks=False, invites=False, voice_states=False, presences=True, # requires verification guild_messages=True, dm_messages=True, guild_reactions=True, dm_reactions=True, typing=False, message_content=True, # requires verification guild_scheduled_events=False, auto_moderation_configuration=False, auto_moderation_execution=False, ), **kwargs, ) self.default_prefix = default_prefix self.extensions_to_load = extensions self.logger = log.get_logger("MisoBot") self.start_time = time() self.global_cd = commands.CooldownMapping.from_cooldown( 15, 60, commands.BucketType.member) self.db = maria.MariaDB(self) self.cache = cache.Cache(self) self.version = "5.1" self.extensions_loaded = False self.register_hooks()