コード例 #1
0
 async def adminallow(self, ctx, *, yes_no=None):
     """Mengatur bot ini hanya dapat digunakan oleh admin saja atau tidak dalam server mu? (admin-only)
     Jika dinyalakan member tidak akan dapat menggunakan command ini."""
     if not await Utils.is_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Admin disabled command access",
                              "AdminDisabledAccess", yes_no))
コード例 #2
0
 async def spooking(self, ctx, *, yes_no=None):
     """Enables/Disables reacting 🎃 to every sp00py message on Halloween (owner only)."""
     if not await Utils.is_owner_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx,
                              "Spooking",
                              "Spooking",
                              yes_no,
                              is_global=True))
コード例 #3
0
 async def teleblocklinks(self, ctx, *, yes_no=None):
     """Enables/Disables removing links sent over telephone calls (bot-admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx,
                              "Block telephone links",
                              "TeleBlockLinks",
                              yes_no,
                              default=True))
コード例 #4
0
 async def remindoffline(self, ctx, *, yes_no = None):
     """Menyalakan pengingat offline user(admin server only).
     
     Jika fitur ini dinyalakan dalam server, saat ada user mention user lain yang sedang offline,
     aku akan mengingatkan mereka lewat pesan DM bahwa orang yang dituju sedang offline"""
     if not await Utils.is_bot_admin_reply(ctx): return
     msg = Utils.yes_no_setting(ctx,"Offline user reminder","RemindOffline",yes_no)
     em = discord.Embed(color = 0XFF8C00, description = msg)
     em.set_footer(text = "{}".format(ctx.author), icon_url = "{}".format(ctx.author.avatar_url))
     await ctx.send(embed = em)
コード例 #5
0
    async def removeinvitelinks(self, ctx, *, yes_no=None):
        """**INDONESIA**
        on/off auto-delete discord invite links dalam chat.

        **ENGLISH**
        Enables/Disables auto-deleting discord invite links in chat.
        (Admin server only)."""
        LangCheck = self.settings.getUserStat(ctx.message.author,
                                              ctx.message.guild, "Language")

        if LangCheck == None:
            # Author belum memilih bahasa
            await self.language_not_set(ctx)

        if not await Utils.is_bot_admin_reply(ctx): return
        await ctx.send(
            Utils.yes_no_setting(ctx, "Remove discord invite links",
                                 "RemoveInviteLinks", yes_no))
コード例 #6
0
ファイル: Bot.py プロジェクト: kazoeru/Acinonyx-v3
 async def basadmin(self, ctx, *, yes_no: str = None):
     """Mengatur apakah bot-admin dapat menggunakan command admin yang berkaitan dengan xp? (admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Bot-admin as admin", "BotAdminAsAdmin",
                              yes_no))
コード例 #7
0
 async def remindoffline(self, ctx, *, yes_no=None):
     """Sets whether to inform users that pinged members are offline or not."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Offline user reminder", "RemindOffline",
                              yes_no))
コード例 #8
0
ファイル: Bot.py プロジェクト: Pavo-IM/corpbot_docker
 async def joinpm(self, ctx, *, yes_no: str = None):
     """Sets whether or not to pm the rules to new users when they join (bot-admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "New user pm", "JoinPM", yes_no))
コード例 #9
0
ファイル: Music.py プロジェクト: Pavo-IM/corpbot_docker
	async def searchlist(self, ctx, yes_no = None):
		"""Gets or sets whether or not the server will show a list of options when searching with the play command - or if it'll just pick the first (admin only)."""
		if not await Utils.is_admin_reply(ctx): return
		await ctx.send(Utils.yes_no_setting(ctx,"Music player search list","YTMultiple",yes_no))
コード例 #10
0
 async def ignoredeath(self, ctx, *, yes_no=None):
     """Sets whether the bot ignores its own death and continues to respond post-mortem (bot-admin only; always off by default)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Ignore death", "IgnoreDeath", yes_no))
コード例 #11
0
 async def tableflip(self, ctx, *, yes_no=None):
     """Turns on/off table flip muting (bot-admin only; always off by default)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Table flip muting", "TableFlipMute",
                              yes_no))
コード例 #12
0
ファイル: Fliptime.py プロジェクト: kazoeru/Acinonyx-v3
 async def tableflip(self, ctx, *, yes_no=None):
     """on/off table flip mute dalam server (admin only)."""
     if not await Utils.is_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Table flip muting", "TableFlipMute",
                              yes_no))
コード例 #13
0
 async def badminallow(self, ctx, *, yes_no=None):
     """Mengatur bot ini apakah bot-admin dapat mengakses command yang sedang dimatikan? (admin-only)."""
     if not await Utils.is_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Bot-admin disabled command access",
                              "BAdminDisabledAccess", yes_no))
コード例 #14
0
ファイル: Bot.py プロジェクト: Pavo-IM/corpbot_docker
 async def adminunlim(self, ctx, *, yes_no: str = None):
     """Sets whether or not to allow unlimited xp to admins (bot-admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Admin unlimited xp", "AdminUnlimited",
                              yes_no))
コード例 #15
0
ファイル: SecretSanta.py プロジェクト: Pavo-IM/corpbot_docker
 async def allowss(self, ctx, *, yes_no=None):
     """Sets whether the Secret Santa module is enabled (owner only; always off by default)."""
     if not await Utils.is_owner_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Secret Santa", "SSAllowed", yes_no))
コード例 #16
0
ファイル: Bot.py プロジェクト: Pavo-IM/corpbot_docker
 async def basadmin(self, ctx, *, yes_no: str = None):
     """Sets whether or not to treat bot-admins as admins with regards to xp (admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Bot-admin as admin", "BotAdminAsAdmin",
                              yes_no))
コード例 #17
0
ファイル: Feed.py プロジェクト: kazoeru/Acinonyx-v3
 async def ignoredeath(self, ctx, *, yes_no=None):
     """Mengabaikan kematian bot saat bot kelaparan didalam server (admin only, settingan default ini selalu off)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Ignore death", "IgnoreDeath", yes_no))
コード例 #18
0
 async def quoteadminonly(self, ctx, *, yes_no=None):
     """Sets whether only admins/bot-admins can quote or not (bot-admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Admin-only quotes", "QuoteAdminOnly",
                              yes_no))
コード例 #19
0
 async def disabledreact(self, ctx, *, yes_no=None):
     """Sets whether the bot reacts to disabled commands when attempted (admin-only)."""
     if not await Utils.is_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Disabled command reactions",
                              "DisabledReactions", yes_no))
コード例 #20
0
ファイル: BotAdmin.py プロジェクト: Pavo-IM/corpbot_docker
 async def removeinvitelinks(self, ctx, *, yes_no=None):
     """Enables/Disables auto-deleting discord invite links in chat (bot-admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Remove discord invite links",
                              "RemoveInviteLinks", yes_no))
コード例 #21
0
 async def badminallow(self, ctx, *, yes_no=None):
     """Sets whether bot-admins can access disabled commands (admin-only)."""
     if not await Utils.is_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Bot-admin disabled command access",
                              "BAdminDisabledAccess", yes_no))
コード例 #22
0
ファイル: Bot.py プロジェクト: kazoeru/Acinonyx-v3
 async def adminunlim(self, ctx, *, yes_no: str = None):
     """Mengatur apakah admin memiliki xp unlimited? (admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Admin unlimited xp", "AdminUnlimited",
                              yes_no))
コード例 #23
0
ファイル: Music.py プロジェクト: skylarr1227/sky-cogs
	async def disableplay(self, ctx, *, yes_no = None):
		"""Enables/Disables the music commands.  Helpful in case Youtube is rate limiting to avoid extra api calls and allow things to calm down.  Owners can still access music commands (owner only)."""
		if not await Utils.is_owner_reply(ctx): return
		await ctx.send(Utils.yes_no_setting(ctx,"Music player lock out","DisableMusic",yes_no,is_global=True))
コード例 #24
0
ファイル: Bot.py プロジェクト: kazoeru/Acinonyx-v3
 async def joinpm(self, ctx, *, yes_no: str = None):
     """Mengatur apakah bot akan mengirimkan rules server melalui pesan DM ke member yang join (bot-admin only)."""
     if not await Utils.is_bot_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "New user pm", "JoinPM", yes_no))
コード例 #25
0
 async def disabledreact(self, ctx, *, yes_no=None):
     """Mengatur apakah bot akan membalas pesan dengan reaction atau tidak? (admin-only)."""
     if not await Utils.is_admin_reply(ctx): return
     await ctx.send(
         Utils.yes_no_setting(ctx, "Disabled command reactions",
                              "DisabledReactions", yes_no))