Пример #1
0
 def __init__(self, bot):
     self.bot = bot
     self.client = mcl(self.bot.mongodb)
     self.db = self.client['modtest']
     self.col = self.db['modlog']
     self.settings = self.db['settings']
     self.config = self.db['automod']
Пример #2
0
    def __init__(self):
        super().__init__(command_prefix=get_prefix(), case_insensitive=True)

        self.candy = "<:candy_cane:657386020320444426>"
        self.candle = "<:christmas_candle:657384456017149955>"
        self.cross = "<:christmas_cross:657385915974549544>"
        self.gift = "<:christmas_gift:657393185378664448>"
        self.wreath = "<:christmas_wreath:657394127360753688>"

        self.embed = 0xf23333

        self.client = mcl("mongodb://*****:*****@ds061199.mlab.com:61199/bad_santa?retryWrites=false")
        self.db = self.client['bad_santa']
        self.user_col = self.db['users']
        self.banned = self.db['banned']

        self.admin = [
            367492468578582539,  #air
            319593881182404608,   #rev
            292749706407182337,   #teddy  
            280052443956379658,   #hunter
            601846796662210570   #brendan
            # 404310500336205826    #encor
        ]

        self.add_check(self.command_check)
Пример #3
0
 def __init__(self, bot):
     self.bot = bot
     self.client = mcl("mongodb://*****:*****@ds337377.mlab.com:37377/modtest")
     self.db = self.client['modtest']
     self.col = self.db['modlog']
     self.settings = self.db['settings']
     self.muted = self.db["muted"]
     self.warndb = self.db['warning']
     self.config = self.db['automod']
     self.spam = self.db['spam']
Пример #4
0
    async def on_ready(self):
        print(f"Bot is online!")

        activity = discord.Activity(name=' Over Discord Labs.', type=discord.ActivityType.watching)
        await bot.change_presence(activity=activity)
        print('Intilized successfully.')
        #MongoDB Stuff
        self.client = mcl('MONGODB CONNECTION URL')
        self.db=self.client['main']
        self.b = self.db['bots']
        self.a = self.db['ads']
        self.q = self.db['queue']

        self.embed=0x800080

        channel=self.get_channel(698422778575192094)
        embed=discord.Embed(title="Certification Applications",description="React with :tickets: to apply for certification on [Discord Bot Labs](https://bots.discordlabs.org)\n\nMake sure your bot meets all the requirements listed on [docs.discordlabs.org/docs/certification/requirements](https://docs.discordlabs.org/docs/certification/requirements)",color=self.embed)
        #await channel.purge()
        #await channel.send(embed=embed)

        
        msg=await channel.history(limit=1, oldest_first=True).flatten()
        msg=msg[0]
        await msg.clear_reactions()
        await msg.add_reaction('\U0001f39f')  

        channel=self.get_channel(713983354428456961)
        embed=discord.Embed(title="Discord Labs - Get Roles",description="""React with <a:announcement:632970424837210131> to get to get pinged every time we make an announcement.\n
        React with <a:updates:713984949732245624> to get to get pinged every time we announce an update.\n
        React with <a:siren:689141551326035982> to get to get pinged for incidents/planned maintainence.\n
        React with <:poll:713986895884976154> to get to get pinged when we post a poll in <#689140582874087442>.\n
        React with <:staff:713984949639708712> to get to get pinged when we open staff applications.""",color=self.embed)
        #await channel.purge()
        #m = await channel.send(embed=embed)
        #await m.add_reaction("<a:announcement:632970424837210131>")
        #await m.add_reaction("<a:updates:713984949732245624>")
        #await m.add_reaction("<a:siren:689141551326035982>")
        #await m.add_reaction("<:poll:713986895884976154>")
        #await m.add_reaction("<:staff:713984949639708712>")
    



        for cog in cogs:
            try:
                bot.load_extension(cog)
                print(f"Loaded {cog}")
            except Exception as e:
                print(e)
Пример #5
0
 def __init__(self, bot):
     self.bot = bot
     self.client = mcl("mongodb://*****:*****@ds337377.mlab.com:37377/modtest")
     self.db = self.client['modtest']
     self.col = self.db['verification']