Example #1
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, identifier=5349824615)
     default_global = {"TOKEN": "123"}
     self.config.register_global(**default_global)
     print('Addon "{}" loaded'.format(self.__class__.__name__))
     self.endpoint = "https://api.scpslgame.com/v2/admin/badge.php"
Example #2
0
 def __init__(self, bot):
     super().__init__()
     self.bot = bot
     self.settings = Config.get_conf(self, identifier=2652104208, force_registration=True)
     self.settings.register_global(**self.default_global)
     self.session = aiohttp.ClientSession()
     self.imgur_base_url = "https://api.imgur.com/3/"
Example #3
0
    def __init__(self, bot: Red):
        super().__init__()
        self.bot = bot
        self._aliases = Config.get_conf(self, 8927348724)

        self._aliases.register_global(**self.default_global_settings)
        self._aliases.register_guild(**self.default_guild_settings)
Example #4
0
 def __init__(self, bot):
     super().__init__()
     self.bot = bot
     self.key = 414589031223512
     self.config = Config.get_conf(self, self.key)
     self.config.register_guild(commands={})
     self.commandobj = CommandObj(config=self.config, bot=self.bot)
     self.cooldowns = {}
Example #5
0
 def __init__(self, bot: Red):
     super().__init__()
     self.bot = bot
     self.config = Config.get_conf(self, 78631113035100160, force_registration=True)
     self.config.register_guild(**self.default_guild_settings)
     self.config.register_custom("REPORT", **self.default_report)
     self.antispam = {}
     self.user_cache = []
     self.tunnel_store = {}
Example #6
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, 8237492837454039, force_registration=True)
     self.config.register_guild(**self.default_guild)
     self.futures = []
     self.time_format = (
         "%b %d, %Y @ %I:%M %p UTC"
     )  # https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior
     asyncio.ensure_future(self.restart_loas())
Example #7
0
 def __init__(self, bot: Red):
     super().__init__()
     self.bot = bot
     self.file_path = "data/economy/settings.json"
     self.config = Config.get_conf(self, 1256844281)
     self.config.register_guild(**self.default_guild_settings)
     self.config.register_global(**self.default_global_settings)
     self.config.register_member(**self.default_member_settings)
     self.config.register_user(**self.default_user_settings)
     self.config.register_role(**self.default_role_settings)
     self.slot_register = defaultdict(dict)
Example #8
0
    def __init__(self, bot):
        super().__init__()
        self.bot = bot
        self.open_rifts = {}
        self.requesting_users = []
        self.bot.loop.create_task(self.load_rifts())

        self.config = Config.get_conf(self, identifier=2_113_674_295, force_registration=True)
        self.config.register_global(rifts=[])
        self.config.register_channel(blacklisted=False)
        self.config.register_guild(blacklisted=False)
        self.config.register_user(blacklisted=False)
Example #9
0
async def warning_points_remove_check(
    config: Config, ctx: commands.Context, user: discord.Member, points: int
):
    guild = ctx.guild
    guild_settings = config.guild(guild)
    act = {}
    async with guild_settings.actions() as registered_actions:
        for a in registered_actions:
            if points >= a["points"]:
                act = a
            else:
                break
    if act and act["drop_command"] is not None:  # some action needs to be taken
        await create_and_invoke_context(ctx, act["drop_command"], user)
Example #10
0
    def __init__(self, bot: Red):
        super().__init__()
        self.db = Config.get_conf(self, 26262626)

        self.db.register_global(**self.global_defaults)

        self.db.register_guild(**self.guild_defaults)

        self.db.register_role(**self.role_defaults)

        self.bot: Red = bot

        self.streams: List[Stream] = []
        self.task: Optional[asyncio.Task] = None

        self.yt_cid_pattern = re.compile("^UC[-_A-Za-z0-9]{21}[AQgw]$")
Example #11
0
async def warning_points_add_check(
    config: Config, ctx: commands.Context, user: discord.Member, points: int
):
    """Handles any action that needs to be taken or not based on the points"""
    guild = ctx.guild
    guild_settings = config.guild(guild)
    act = {}
    async with guild_settings.actions() as registered_actions:
        for a in registered_actions:
            # Actions are sorted in decreasing order of points.
            # The first action we find where the user is above the threshold will be the
            # highest action we can take.
            if points >= a["points"]:
                act = a
                break
    if act and act["exceed_command"] is not None:  # some action needs to be taken
        await create_and_invoke_context(ctx, act["exceed_command"], user)
Example #12
0
    def __init__(self, bot):
        self.bot = bot
        self.last_change = None
        self.config = Config.get_conf(self, 2752521001, force_registration=True)

        default_global = {
            "botstats": False,
            "delay": "300",
            "statuses": [
                "her Turn()",
                "Tomb Raider II",
                "Transistor",
                "NEO Scavenger",
                "Python",
                "with your heart.",
            ],
            "type": "1",
        }

        self.config.register_global(**default_global)
Example #13
0
 def __init__(self, bot: Red):
     self.bot = bot
     self.logger = logging.getLogger("red.ZeCogsV3.react_roles")
     self.logger.setLevel(logging.INFO)
     self.inject_before_invokes()
     self.previous_locale = None
     self.reload_translations()
     # force_registration is for weaklings
     unique_id = int(
         hashlib.sha512((self.__author__ + "@" + self.__class__.__name__).encode()).hexdigest(),
         16,
     )
     self.config = Config.get_conf(self, identifier=unique_id)
     self.config.register_guild(links={})
     self.role_queue = asyncio.Queue()
     self.role_map = {}
     self.role_cache = {}
     self.links = {}  # {server.id: {channel.id_message.id: [role]}}
     self.message_cache = {}  # {channel.id_message.id: message}
     asyncio.ensure_future(self._init_bot_manipulation())
     asyncio.ensure_future(self.process_role_queue())
Example #14
0
	def __init__(self, bot):
		super().__init__()
		self.db = Config.get_conf(self, 118624118624, force_registration=True)
		self.bot = bot

		self.lastResponse = None

		default_guild_settings = {
			"reminderchannel":  -1,
			"alertroom":        -1,
			"alertsenabled":    False,
			"alertlastmessage": -1
		}
		default_global_settings = {
			"alertsdelay":    10
		}

		self.db.register_guild(**default_guild_settings)
		self.db.register_global(**default_global_settings)

		self.statusTask = asyncio.ensure_future(self._checkStatusTask())
		self.reminderTask = asyncio.ensure_future(self._reminderTask())
Example #15
0
    def __init__(self, bot):
        self.bot = bot
        self.config = Config.get_conf(self, 2700081001, force_registration=True)

        default_guild = {
            "announce_channel": None,
            "auto_ban": False,
            "auto_ban_message": None,
            "auto_blacklist": False,
            "dm_message": None,
            "dm_toggle": False,
            "dungeon_channel": None,
            "dungeon_role": None,
            "join_days": 7,
            "mod_log": False,
            "profile_toggle": False,
            "toggle": False,
            "user_role": None,
            "user_role_toggle": False,
        }

        self.config.register_guild(**default_guild)
Example #16
0
    def __init__(self, bot: Red):
        super().__init__()
        self.bot = bot

        self.conf = Config.get_conf(self, identifier=998240343, force_registration=True)

        self.conf.register_global(installed=[])

        self.already_agreed = False

        self.LIB_PATH = cog_data_path(self) / "lib"
        self.SHAREDLIB_PATH = self.LIB_PATH / "cog_shared"
        self.SHAREDLIB_INIT = self.SHAREDLIB_PATH / "__init__.py"

        self.LIB_PATH.mkdir(parents=True, exist_ok=True)
        self.SHAREDLIB_PATH.mkdir(parents=True, exist_ok=True)
        if not self.SHAREDLIB_INIT.exists():
            with self.SHAREDLIB_INIT.open(mode="w", encoding="utf-8") as _:
                pass

        if str(self.LIB_PATH) not in syspath:
            syspath.insert(1, str(self.LIB_PATH))

        self._repo_manager = RepoManager()
Example #17
0
    def __init__(self, bot):
        self.bot = bot

        self.path = str(datam.cog_data_path(self)).replace("\\", "/")
        self.attachment_path = self.path + "/attachments"

        self.check_folder()

        self.event_types = [
            "on_member_update",
            "on_voice_state_update",
            "on_message_edit",
            "on_message_delete",
            "on_raw_bulk_message_delete",
            "on_guild_channel_create",
            "on_guild_channel_delete",
            "on_guild_channel_update",
            "on_guild_update",
            "on_guild_role_create",
            "on_guild_role_delete",
            "on_guild_role_update",
            "on_member_ban",
            "on_member_unban",
            "on_member_kick",
            "on_member_remove",
            "on_member_join",
        ]

        self.config = Config.get_conf(self, identifier=6198483584)
        default_guild = {
            "enabled": False,
            "compact": False,
            "events": {},
            "ignore": {"channels": {}, "members": {}},
        }
        self.config.register_guild(**default_guild)
Example #18
0
 def __init__(self, bot):
     self.bot = bot
     self.conf = Config.get_conf(self, identifier=473541068378341376)
     default_global = {"data": []}
     self.conf.register_global(**default_global)
     self.task = self.bot.loop.create_task(self.initialize())
Example #19
0
    def __init__(self, bot: Red, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.bot = bot
        self.config = Config.get_conf(self,
                                      identifier=80108971101168412199111111110)

        default_user = {
            "badges": [],
            "points": 0,
            "products": {},
            "current": {}
        }

        self.config.register_user(**default_user)

        self.plants = None

        self.products = None

        self.defaults = {
            "points": {
                "buy": 5,
                "add_health": 5,
                "fertilize": 10,
                "pruning": 20,
                "pesticide": 25,
                "growing": 5,
                "damage": 25,
            },
            "timers": {
                "degradation": 1,
                "completion": 1,
                "notification": 5
            },
            "degradation": {
                "base_degradation": 1.5
            },
            "notification": {
                "max_health": 50
            },
        }

        self.badges = {
            "badges": {
                "Flower Power": {},
                "Fruit Brute": {},
                "Sporadic": {},
                "Odd-pod": {},
                "Greenfingers": {},
                "Nobel Peas Prize": {},
                "Annualsary": {},
            }
        }

        self.notifications = {
            "messages": [
                "The soil seems dry, maybe you could give your plant some water?",
                "Your plant seems a bit droopy. I would give it some fertilizer if I were you.",
                "Your plant seems a bit too overgrown. You should probably trim it a bit.",
            ]
        }

        #
        # Starting loops
        #

        self.completion_task = bot.loop.create_task(
            self.check_completion_loop())
        # self.degradation_task = bot.loop.create_task(self.check_degradation())
        self.notification_task = bot.loop.create_task(self.send_notification())
Example #20
0
 def __init__(self):
     self.config = Config.get_conf(self, 889, force_registration=True)
     default_member = {"overrides": {}, "clawed": False, "channel": 0}
     self.config.register_member(**default_member)
     self.mute_cache = {}
Example #21
0
import argparse
import logging

from redbot.core import commands, Config

from cog_shared.swift_libs.i18n import Translator

translate = Translator(__file__)
log = logging.getLogger("red.misctools")

try:
    config = Config.get_conf(None,
                             cog_name="MiscTools",
                             identifier=421412412,
                             force_registration=True)
    config.register_global(toolsets=[])
except RuntimeError:
    config = None


class Arguments(argparse.ArgumentParser):
    def error(self, message):
        raise commands.BadArgument(message)
Example #22
0
 def __init__(self, bot):
     self.bot = bot
     self.db = Config.get_conf(self, 5074395005, force_registration=True)
     self.db.register_guild(**self.raffle_defaults)
     self.load_check = self.bot.loop.create_task(self.raffle_worker())
Example #23
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, identifier=10010)
     default_guild = {"guardian_list": [], "guardian_log": 0}
     self.config.register_guild(**default_guild)
Example #24
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, identifier=10100779)
     self.config.register_channel(enabled=False)
Example #25
0
    def __init__(self, bot):
        self.bot = bot

        self.activities = [
            discord.ActivityType.playing,
            discord.ActivityType.listening,
            discord.ActivityType.watching,
        ]
        defaults = {
            "status": False,
            "streaming": False,
            "avatar": False,
            "last_avatar": 0.0,
            "search_guild": None,
        }
        self.config = Config.get_conf(self, 218773382617890828)
        self.config.register_global(**defaults)
        self.loop = bot.loop.create_task(self.maybe_change_avatar())
        self.statuses = {
            "neutral": {
                "status": discord.Status.online,
                "game": ["Please Remain Calm", "Mind the Gap"],
                "type": self.activities,
                "link": "https://i.imgur.com/9iRBSeI.png",
                "xmas": "https://i.imgur.com/lSjMH5u.png",
                "transparent": "https://i.imgur.com/z1sHKYA.png",
            },
            "happy": {
                "status": discord.Status.online,
                "game": ["Take it to Make it"],
                "type": self.activities,
                "link": "https://i.imgur.com/P5rUpET.png",
                "xmas": "https://i.imgur.com/zlQzAGP.png",
                "transparent": "https://i.imgur.com/b21iEMj.png",
            },
            "unamused": {
                "status": discord.Status.idle,
                "game": ["Obey Posted Limits"],
                "type": self.activities,
                "link": "https://i.imgur.com/Wr3i9CG.png",
                "xmas": "https://i.imgur.com/Hp7XRjO.png",
                "transparent": "https://i.imgur.com/cZoFosX.png",
            },
            "quizzical": {
                "status": discord.Status.idle,
                "game": ["Yellow Means Yield"],
                "type": self.activities,
                "link": "https://i.imgur.com/qvBCgvU.png",
                "xmas": "https://i.imgur.com/1jCdG3x.png",
                "transparent": "https://i.imgur.com/3WBrM66.png",
            },
            "sad": {
                "status": discord.Status.dnd,
                "game": ["No Public Access"],
                "type": self.activities,
                "link": "https://i.imgur.com/WwrZCTY.png",
                "xmas": "https://i.imgur.com/tb1FZjP.png",
                "transparent": "https://i.imgur.com/wPAdZ7S.png",
            },
            "angry": {
                "status": discord.Status.dnd,
                "game": ["Hitchhickers May Be Escaping Inmates"],
                "type": self.activities,
                "link": "https://i.imgur.com/0JkYNGZ.png",
                "xmas": "https://i.imgur.com/hODosRi.png",
                "transparent": "https://i.imgur.com/L7PKqZF.png",
            },
            "watching": {
                "status": discord.Status.dnd,
                "game": [" "],
                "type": [discord.ActivityType.watching],
                "link": "https://i.imgur.com/Xs4Mwyd.png",
                "xmas": "https://i.imgur.com/xSLto00.png",
                "transparent": "https://i.imgur.com/X6SXXvx.png",
            },
        }
 def __init__(self, bot) -> None:
     self.bot = bot
     self.config = Config.get_conf(self, 95932766180343808, force_registration=True)
     self.config.register_guild(embeds={})
     self.config.register_global(embeds={})
Example #27
0
	def __init__(C,bot):C.bot=bot;C.config=W.get_conf(C,2751203330,force_registration=A);C.datapath=B(X(raw_name='ImgWelcome'));C.imgpath=B(Y(C));D={'ANNOUNCE':H,'ACCOUNT_WARNINGS':A,A7:f"{C.imgpath}/transparent.png",A8:[255,255,255,230],'CHANNEL':E,A9:[128,128],Z:f"{C.imgpath}/fonts/UniSansHeavy.otf",a:30,b:22,c:18,d:12,AA:[0,0,0,255],e:f"{C.imgpath}/fonts/UniSansHeavy.otf",f:20,AB:[255,255,255,230],'SPECIAL_USERS':A,p:[255,255,255,230],AC:E,g:f"{C.imgpath}/fonts/UniSansHeavy.otf",h:50};C.config.register_guild(**D);C.session=T.ClientSession();C.version='0.3.2'
	def cog_unload(A):A.bot.loop.create_task(A.session.close())
Example #28
0
 def __init__(self, bot):
     self.bot = bot
     self.conf = Config.get_conf(self, identifier=UNIQUE_ID, force_registration=True)
     self.conf.register_channel(stickied=None, last=None)
     self.locked_channels = set()
Example #29
0
    def __init__(self, bot):
        self.bot = bot

        self.config = Config.get_conf(self, 1398467138476, force_registration=True)
        default_global = {"toggles": {"botmessages": False}, "destination": None, "blacklist": []}
        self.config.register_global(**default_global)
Example #30
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, identifier=91928524318855168)
     self.verify_url = "https://ardentmaples.com/api/discord/verify"
Example #31
0
    def __init__(self, bot: Red):
        self.bot = bot
        self.config = Config.get_conf(self, 36649125)
        self.config.register_guild(**self.guild_defaults)

        self.__init_before()
Example #32
0
 def __init__(self):
     self.config = Config.get_conf(self, identifier=233137652)
     default_global = {"apikey": ""}
     self.config.register_global(**default_global)
Example #33
0
    def __init__(self, bot):
        self.bot = bot
        self.config = Config.get_conf(self, identifier=9999114111108101)
        default_guild = {"cmdlist": {}, "settings": {}}

        self.config.register_guild(**default_guild)
Example #34
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, identifier=15646486532)
     self.config.register_global(listen_channels={})
Example #35
0
 def __init__(self, bot):
     super().__init__()
     self.bot = bot
     defaults = {
         "cooldowns": {
             "workcd": 14400,
             "crimecd": 14400,
             "robcd": 86400,
             "withdrawcd": 1,
             "depositcd": 1,
         },
         "defaultreplies": True,
         "replies": {
             "crimereplies": [],
             "workreplies": []
         },
         "rob": [],
         "payouts": {
             "crime": {
                 "max": 300,
                 "min": 10
             },
             "work": {
                 "max": 250,
                 "min": 10
             }
         },
         "failrates": {
             "crime": 50,
             "rob": 70
         },
         "fines": {
             "max": 250,
             "min": 10
         },
         "interest": 5,
         "disable_wallet": False,
         "roulette_toggle": True,
         "roulette_time": 60,
         "roulette_payouts": {
             "zero": 36,
             "single": 17,
             "color": 1,
             "dozen": 2,
             "odd_or_even": 1,
             "halfs": 1,
             "column": 2,
         },
         "betting": {
             "max": 10000,
             "min": 100
         },
         "wallet_max": 50000,
     }
     defaults_member = {
         "cooldowns": {
             "workcd": None,
             "crimecd": None,
             "robcd": None,
             "depositcd": None,
             "withdrawcd": None,
         },
         "wallet": 0,
         "winnings": 0,
         "losses": 0,
     }
     self.roulettegames = {}
     self.config = Config.get_conf(self,
                                   identifier=95932766180343808,
                                   force_registration=True)
     self.config.register_global(**defaults)
     self.config.register_guild(**defaults)
     self.config.register_member(**defaults_member)
     self.config.register_user(**defaults_member)
Example #36
0
 def __init__(self, bot):
     self.bot = bot
     self.global_servers = {}
     self.config = Config.get_conf(self, 8237492837454049, force_registration=True)
     self.config.register_global(**self.default_global)
     self.config.register_guild(**self.default_guild)
Example #37
0
 def __init__(self, bot):
     self.config = Config.get_conf(self,
                                   identifier=1234567892,
                                   force_registration=True)
     self.config.register_guild(**defaults)
     self.prefix_cog = bot.get_cog("PrefixManager")
Example #38
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, 50745431254379423, force_registration=True)
     self.config.register_guild(**self.default_guild)
Example #39
0
    def __init__(self, bot: Red):
        super().__init__()
        self.bot = bot
        self.config = Config.get_conf(self,
                                      2711759130,
                                      force_registration=True)

        self.api_interface = None
        self.player_manager = None
        self.playlist_api = None
        self.local_folder_current_path = None
        self.db_conn = None

        self._error_counter = Counter()
        self._error_timer = {}
        self._disconnected_players = {}
        self._daily_playlist_cache = {}
        self._daily_global_playlist_cache = {}
        self._persist_queue_cache = {}
        self._dj_status_cache = {}
        self._dj_role_cache = {}
        self.skip_votes = {}
        self.play_lock = {}

        self.lavalink_connect_task = None
        self._restore_task = None
        self.player_automated_timer_task = None
        self.cog_cleaned_up = False
        self.lavalink_connection_aborted = False
        self.permission_cache = discord.Permissions(
            embed_links=True,
            read_messages=True,
            send_messages=True,
            read_message_history=True,
            add_reactions=True,
        )

        self.session = aiohttp.ClientSession(json_serialize=json.dumps)
        self.cog_ready_event = asyncio.Event()
        self._ws_resume = defaultdict(asyncio.Event)
        self._ws_op_codes = defaultdict(asyncio.LifoQueue)

        self.cog_init_task = None
        self.global_api_user = {
            "fetched": False,
            "can_read": False,
            "can_post": False,
            "can_delete": False,
        }
        self._ll_guild_updates = set()
        self._diconnected_shard = set()
        self._last_ll_update = datetime.datetime.now(datetime.timezone.utc)

        default_global = dict(
            schema_version=1,
            bundled_playlist_version=0,
            owner_notification=0,
            cache_level=CacheLevel.all().value,
            cache_age=365,
            daily_playlists=False,
            global_db_enabled=False,
            global_db_get_timeout=5,
            status=False,
            use_external_lavalink=False,
            restrict=True,
            localpath=str(cog_data_path(raw_name="Audio")),
            url_keyword_blacklist=[],
            url_keyword_whitelist=[],
            java_exc_path="java",
            **self._default_lavalink_settings,
        )

        default_guild = dict(
            auto_play=False,
            currently_auto_playing_in=None,
            auto_deafen=True,
            autoplaylist=dict(
                enabled=True,
                id=42069,
                name="Aikaterna's curated tracks",
                scope=PlaylistScope.GLOBAL.value,
            ),
            persist_queue=True,
            disconnect=False,
            dj_enabled=False,
            dj_role=None,
            daily_playlists=False,
            emptydc_enabled=False,
            emptydc_timer=0,
            emptypause_enabled=False,
            emptypause_timer=0,
            jukebox=False,
            jukebox_price=0,
            maxlength=0,
            notify=False,
            prefer_lyrics=False,
            repeat=False,
            shuffle=False,
            shuffle_bumped=True,
            thumbnail=False,
            volume=100,
            vote_enabled=False,
            vote_percent=0,
            room_lock=None,
            url_keyword_blacklist=[],
            url_keyword_whitelist=[],
            country_code="US",
        )
        _playlist: Mapping = dict(id=None,
                                  author=None,
                                  name=None,
                                  playlist_url=None,
                                  tracks=[])

        self.config.init_custom("EQUALIZER", 1)
        self.config.register_custom("EQUALIZER", eq_bands=[], eq_presets={})
        self.config.init_custom(PlaylistScope.GLOBAL.value, 1)
        self.config.register_custom(PlaylistScope.GLOBAL.value, **_playlist)
        self.config.init_custom(PlaylistScope.GUILD.value, 2)
        self.config.register_custom(PlaylistScope.GUILD.value, **_playlist)
        self.config.init_custom(PlaylistScope.USER.value, 2)
        self.config.register_custom(PlaylistScope.USER.value, **_playlist)
        self.config.register_guild(**default_guild)
        self.config.register_global(**default_global)
        self.config.register_user(country_code=None)
Example #40
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, 45463543548)
     self.config.register_guild(**default_settings)
     self.users = {}
Example #41
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, 356889977)
     default_global = {"username": "", "password": ""}
     self.config.register_global(**default_global)
Example #42
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self,
                                   95932766180343808,
                                   force_registration=True)
     self.config.register_user(crypto={})
Example #43
0
 def __init__(self, bot):
     self.bot = bot
     self.conf = Config.get_conf(self, identifier=964952632)
     self.conf.register_guild(
         **self.default_guild_settings
     )
Example #44
0
 def __init__(self, bot):
     self.bot = bot
     self.conf = Config.get_conf(self, identifier=423187441546)
     default_guild_settings = {"polls":{},"embed":True}
     self.conf.register_guild(**default_guild_settings)
     self.conf.register_global(polls=[])
Example #45
0
 def __init__(self, bot: Red):
     self.bot = bot
     self.config = Config.get_conf(
         self, 5641654654621651651, force_registration=True
     )
     self.antispam = {}
    def __init__(self, bot):
        self.bot = bot
        self.config = Config.get_conf(self, identifier=7651)
        default_guild = {"quotes": []}

        self.config.register_guild(**default_guild)
Example #47
0
    def __init__(self, bot, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.bot = bot

        self.config = Config.get_conf(self, identifier=10100779)
        self.config.register_channel(enabled=False)
Example #48
0
 def __init__(self, bot: Red):
     self.bot = bot
     self.config = Config.get_conf(self, 86345009)
     self.config.register_guild(**self.guild_defaults)
Example #49
0
    async def _create_welcome(R, member, test_member_number: I = E):
        AQ = 'of '
        AP = 'Welcome'
        q = test_member_number
        K = member
        C = await R.config.guild(K.guild).all()
        AC = C[f]
        AD = C[g]
        AE = C[d]
        AF = C[e]
        S = C[Y]
        AG = C[Z]
        AH = C[a]
        AI = C[b]
        AJ = C[c]
        r = G.truetype(AC, AD)
        T = G.truetype(AE, AF)
        s = G.truetype(S, AG)
        t = G.truetype(S, AH)
        u = G.truetype(S, AI)
        v = G.truetype(S, AJ)
        w = F.open(C[A6]).convert(Q)
        AK = F.open(R.imgpath + '/noimage.png')
        L = F.new(Q, (500, 150))
        L = n.fit(w, (500, 150), centering=(0.5, 0.5))
        L.paste(w)
        L = L.resize((500, 150), F.NEAREST)
        U = F.new('L', (512, 512), 0)
        AL = P.Draw(U)
        AL.ellipse(((0, 0), (512, 512)), fill=255)
        h = J(C[A8])
        U = U.resize(h, F.ANTIALIAS)
        try:
            O = m()
            await K.avatar_url.save(O, seek_begin=A)
            O = F.open(O).convert(Q)
        except A4 as AR:
            o.error('ImgWelcome error in create_welcome:\n', exc_info=A)
            O = AK
        i = n.fit(O, h, centering=(0, 0))
        i.putalpha(U)
        j = J(C[A7])
        V = J(C[p])
        x = J(C[AA])
        try:
            y = J(C[AB])
        except TypeError:
            y = J(C[p])
        M = J(C[A9])
        z = F.new('L', (512, 512), 0)
        AM = P.Draw(z)
        AM.ellipse((0, 0) + (512, 512), fill=255, outline=0)
        W = F.new(Q, (512, 512))
        AN = P.Draw(W)
        AN.ellipse([0, 0, 512, 512],
                   fill=(j[0], j[1], j[2], 180),
                   outline=(255, 255, 255, 250))
        X = await R._circle_border(h)
        W = W.resize(X, F.ANTIALIAS)
        AO = z.resize(X, F.ANTIALIAS)
        A0 = 7 + I((136 - X[0]) / 2)
        A1 = 11 + I((136 - X[0]) / 2)
        H = P.Draw(L)
        L.paste(W, (A0, A0), AO)
        L.paste(i, (A1, A1), i)
        E = f"{B(K)}"

        def N(original_position: J, text: B, pixel_displacement: I, font,
              textoutline):
            D = textoutline
            C = font
            B = text
            A = original_position
            E = pixel_displacement
            F = A[0] - E, A[1]
            G = A[0] + E, A[1]
            I = A[0], A[1] - E
            J = A[0], A[1] + E
            H.text(F, B, font=C, fill=D)
            H.text(G, B, font=C, fill=D)
            H.text(I, B, font=C, fill=D)
            H.text(J, B, font=C, fill=D)
            H.text(A, B, font=C, fill=D)

        N((150, 16), AP, 1, r, M)
        H.text((150, 16), AP, font=r, fill=y)
        if D(E) <= 17:
            N((152, 63), E, 1, s, M)
            H.text((152, 63), E, font=s, fill=V)
        if D(E) > 17:
            if D(E) <= 23:
                N((152, 66), E, 1, t, M)
                H.text((152, 66), E, font=t, fill=V)
        if D(E) >= 24:
            if D(E) <= 32:
                N((152, 70), E, 1, u, M)
                H.text((152, 70), E, font=u, fill=V)
        if D(E) >= 33:
            N((152, 73), E, 1, v, M)
            H.text((152, 73), E, font=v, fill=V)
        if not q:
            k = A5(K.guild.members, key=lambda m: m.joined_at).index(K) + 1
        else:
            k = I(q)
        A2 = B(k) + R._get_suffix(k)
        A3 = B(K.guild.name) + '!' if D(B(
            K.guild.name)) <= 28 else B(K.guild.name)[:23] + '...'
        N((152, 96), f"You are the {B(A2)} member", 1, T, M)
        H.text((152, 96), f"You are the {B(A2)} member", font=T, fill=x)
        N((152, 116), AQ + A3, 1, T, M)
        H.text((152, 116), AQ + A3, font=T, fill=x)
        l = m()
        L.save(l, format='PNG')
        l.seek(0)
        return l
Example #50
0
 def __init__(self, bot):
     self.bot = bot
     self.db = Config.get_conf(self, 5074395005, force_registration=True)
     self.db.register_guild(**self.raffle_defaults)
     self.load_check = self.bot.loop.create_task(self.raffle_worker())
Example #51
0
 def __init__(self,bot):
     self.bot = bot
     self.database = Config.get_conf(self, identifier=88193037185923, force_registration=True)
     self.database.register_guild(**defaults)
Example #52
0
from redbot.core import Config


db = Config.get_conf(None, 228174739, force_registration=True, cog_name="leveler")


backgrounds = {
    "levelup": {
        "default": "http://i.imgur.com/eEFfKqa.jpg"
    },
    "profile": {
        "alice": "http://i.imgur.com/MUSuMao.png",
        "bluestairs": "http://i.imgur.com/EjuvxjT.png",
        "coastline": "http://i.imgur.com/XzUtY47.jpg",
        "default": "http://i.imgur.com/8T1FUP5.jpg",
        "greenery": "http://i.imgur.com/70ZH6LX.png",
        "iceberg": "http://i.imgur.com/8KowiMh.png",
        "lamp": "http://i.imgur.com/0nQSmKX.jpg",
        "miraiglasses": "http://i.imgur.com/2Ak5VG3.png",
        "miraikuriyama": "http://i.imgur.com/jQ4s4jj.png",
        "mountaindawn": "http://i.imgur.com/kJ1yYY6.jpg",
        "redblack": "http://i.imgur.com/74J2zZn.jpg",
        "waterlilies": "http://i.imgur.com/qwdcJjI.jpg"
    },
    "rank": {
        "abstract": "http://i.imgur.com/70ZH6LX.png",
        "aurora": "http://i.imgur.com/gVSbmYj.jpg",
        "city": "http://i.imgur.com/yr2cUM9.jpg",
        "default": "http://i.imgur.com/SorwIrc.jpg",
        "mountain": "http://i.imgur.com/qYqEUYp.jpg",
        "nebula": "http://i.imgur.com/V5zSCmO.jpg"
Example #53
0
 def __init__(self, bot: Red):
     super().__init__()
     self.bot = bot
     self.config = Config.get_conf(self, identifier=73600, force_registration=True)
     self.config.register_guild(roles={})
Example #54
0
 def __init__(self):
     self.config = Config.get_conf(self, identifier=842364413)
     default_global = {
         "hugs": [
             "https://img2.gelbooru.com/images/ff/63/ff63a3c4329fda2bf1e9704d4e150fea.gif",
             "https://img2.gelbooru.com/images/2c/e8/2ce81403e0279f1a570711f7472b3abb.gif",
             "https://img2.gelbooru.com/images/e2/05/e205e349535e22c07865913770dcad5f.gif",
             "https://img2.gelbooru.com/images/09/f6/09f63a79f70700abb2593862525ade10.gif",
             "https://safebooru.org//images/1174/5ebeacd87b22a0c5949ecb875667ae75702c2fed.gif",
             "https://safebooru.org//images/848/4828fc43e39f52abd5bac6b299e822ae02786974.gif",
             "https://safebooru.org//images/160/ba09bc95bc05b4f47af22671950e66f085c7ea9e.gif",
             "https://img2.gelbooru.com/images/3f/73/3f73b1c3703d91a9300aebdaab6e26c0.gif",
             "https://img2.gelbooru.com/images/7d/7c/7d7c8ce0c4e561804f16adc7907a78e8.gif",
             "https://img2.gelbooru.com/images/5e/8c/5e8c1a33470c62f6907d0ea5a03ae644.gif",
             "https://img2.gelbooru.com/images/2b/b9/2bb9dc89cf991181bce06279d8d5f0f4.gif",
             "https://cdn.weeb.sh/images/rJaog0FtZ.gif",
             "https://cdn.weeb.sh/images/Hyv6uOQPZ.gif",
             "https://cdn.weeb.sh/images/BJx2l0ttW.gif",
             "https://media.giphy.com/media/iviBUyNqP46Aw/giphy.gif",
             "https://media.giphy.com/media/wnsgren9NtITS/giphy.gif",
             "https://media.giphy.com/media/svXXBgduBsJ1u/giphy.gif",
             "https://media.giphy.com/media/3ZnBrkqoaI2hq/giphy.gif",
             "https://media.giphy.com/media/3o6ZsTopjMRVkJXAWI/giphy.gif",
             "https://media.giphy.com/media/od5H3PmEG5EVq/giphy.gif",
             "https://media.giphy.com/media/vVA8U5NnXpMXK/giphy.gif",
             "https://media.giphy.com/media/aVmEsdMmCTqSs/giphy.gif",
             "https://media.giphy.com/media/ZQN9jsRWp1M76/giphy.gif",
             "https://media.giphy.com/media/DjczAlIcyK1Co/giphy.gif",
             "https://media.giphy.com/media/ba92ty7qnNcXu/giphy.gif",
             "https://media.giphy.com/media/C4gbG94zAjyYE/giphy.gif",
             "https://i.imgur.com/4Y50gzE.gif",
             "https://i.imgur.com/OrpyAfa.gif",
             "https://i.imgur.com/aA8mTuX.gif",
             "https://i.imgur.com/fm9PHyr.gif",
             "https://i.imgur.com/tCuAWNW.gif",
             "https://i.imgur.com/BPMTcq7.gif",
             "https://i.imgur.com/V1fd9oP.gif",
             "https://i.imgur.com/OSDidQJ.gif",
             "https://i.imgur.com/1RlShE9.gif",
             "https://i.imgur.com/hM1LcZf.gif",
             "https://i.imgur.com/cRfX87T.gif",
             "https://cdn.weeb.sh/images/HyNJIaVCb.gif",
             "https://cdn.weeb.sh/images/ryMqdOXvZ.gif",
             "https://cdn.weeb.sh/images/Hk4qu_XvZ.gif",
             "https://cdn.weeb.sh/images/ByuHsvu8z.gif",
             "https://cdn.weeb.sh/images/Hy4hxRKtW.gif",
             "https://cdn.weeb.sh/images/Sk2gmRZZG.gif",
             "https://cdn.weeb.sh/images/HkfgF_QvW.gif",
             "https://cdn.weeb.sh/images/HJTWcTNCZ.gif",
             "https://cdn.weeb.sh/images/rko9O_mwW.gif",
             "https://cdn.weeb.sh/images/rkx1dJ25z.gif",
             "https://media.giphy.com/media/KMQoRt68bFei4/giphy.gif",
             "https://cdn.weeb.sh/images/BkZngAYtb.gif",
         ],
         "cuddle": [
             "https://cdn.weeb.sh/images/BkTe8U7v-.gif",
             "https://cdn.weeb.sh/images/SykzL87D-.gif",
             "https://cdn.weeb.sh/images/BywGX8caZ.gif",
             "https://cdn.weeb.sh/images/SJceIU7wZ.gif",
             "https://cdn.weeb.sh/images/SJn18IXP-.gif",
             "https://cdn.weeb.sh/images/B1Qb88XvW.gif",
             "https://cdn.weeb.sh/images/r1XEOymib.gif",
             "https://cdn.weeb.sh/images/SJLkLImPb.gif",
             "https://cdn.weeb.sh/images/SyUYOJ7iZ.gif",
             "https://cdn.weeb.sh/images/rkBl8LmDZ.gif",
             "https://cdn.weeb.sh/images/Byd1IUmP-.gif",
             "https://cdn.weeb.sh/images/B1S1I87vZ.gif",
             "https://cdn.weeb.sh/images/r1s9RqB7G.gif",
             "https://cdn.weeb.sh/images/Hy5y88mPb.gif",
             "https://cdn.weeb.sh/images/rkA6SU7w-.gif",
             "https://cdn.weeb.sh/images/r1A77CZbz.gif",
             "https://cdn.weeb.sh/images/SJYxIUmD-.gif",
             "https://cdn.weeb.sh/images/H1SfI8XwW.gif",
             "https://cdn.weeb.sh/images/rJCAH8XPb.gif",
             "https://cdn.weeb.sh/images/By03IkXsZ.gif",
             "https://cdn.weeb.sh/images/ryfyLL7D-.gif",
             "https://cdn.weeb.sh/images/BJwpw_XLM.gif",
             "https://cdn.weeb.sh/images/r1VzDkmjW.gif",
             "https://cdn.weeb.sh/images/BJkABImvb.gif",
             "https://cdn.weeb.sh/images/HkzArUmvZ.gif",
             "https://cdn.weeb.sh/images/r1A77CZbz.gif",
         ],
         "kiss": [
             "https://img2.gelbooru.com/images/72/3d/723d7b46a080e459321cb0a46fa4ff84.gif",
             "https://img2.gelbooru.com/images/14/15/141537ae7a372f093e7d6996b16c245b.gif",
             "https://img2.gelbooru.com/images/0d/f6/0df60e366022350bdaf7f49390ac90a9.gif",
             "https://img2.gelbooru.com/images/41/07/41070fe3eff7262f9f607a0a307c9740.gif",
             "https://img2.gelbooru.com/images/1c/67/1c670a0dc8ab6a43eb8b6781d78600ab.gif",
             "https://img2.gelbooru.com/images/63/f5/63f5a9a4cf7a872d6982ae6e518d212e.gif",
             "https://img2.gelbooru.com/images/a1/a8/a1a888b4f4c69e1dc493cbf66a3a855a.gif",
             "https://img2.gelbooru.com/images/ca/67/ca67e314075bab7fde43bfc9686e7fde.gif",
             "https://img2.gelbooru.com/images/28/45/2845a2ad83b4f207d7ccfbb98c3a1be6.gif",
             "https://i.imgur.com/WYkVxW2.gif",
             "https://i.imgur.com/xu104Xp.gif",
             "https://i.imgur.com/8jcpBO7.gif",
             "https://i.imgur.com/jmWGYh5.gif",
             "https://i.imgur.com/Sg8Obai.gif",
             "https://i.imgur.com/Pr06rra.gif",
             "https://i.imgur.com/J8xgNpE.gif",
             "https://i.imgur.com/gtIEfcS.gif",
             "https://i.imgur.com/j3zdC5g.gif",
             "https://cdn.weeb.sh/images/r1cB3aOwW.gif",
             "https://cdn.weeb.sh/images/B1MJ2aODb.gif",
             "https://cdn.weeb.sh/images/Hy-oQl91z.gif",
             "https://cdn.weeb.sh/images/rJ6PWohA-.gif",
             "https://cdn.weeb.sh/images/rJrCj6_w-.gif",
             "https://78.media.tumblr.com/7255f36b2c31fac77542e8fe6837b408/tumblr_mokq94dAXR1s05qslo1_500.gif",
         ],
         "slap": [
             "https://cdn.weeb.sh/images/H16aQJFvb.gif",
             "https://img2.gelbooru.com/images/d2/2c/d22c2eedd00914ce38efb46d797be031.gif",
             "https://safebooru.org//images/192/fb1c45872a172ab384a22b9d9089b861d366564c.gif",
             "https://safebooru.org//images/118/968c5b9f042a5262c8c8628cd52a7a6a557e525d.gif",
             "https://media1.tenor.com/images/d14969a21a96ec46f61770c50fccf24f/tenor.gif?itemid=5509136",
             "https://media1.tenor.com/images/9ea4fb41d066737c0e3f2d626c13f230/tenor.gif?itemid=7355956",
             "https://media1.tenor.com/images/4a6b15b8d111255c77da57c735c79b44/tenor.gif?itemid=10937039",
             "https://media1.tenor.com/images/153b2f1bfd3c595c920ce60f1553c5f7/tenor.gif?itemid=10936993",
             "https://media1.tenor.com/images/4fa82be21ffd18c99a9708ba209d56ad/tenor.gif?itemid=5318916",
             "https://media1.tenor.com/images/1ba1ea1786f0b03912b1c9138dac707c/tenor.gif?itemid=5738394",
             "https://i.imgur.com/EO8udG1.gif",
             "https://i.imgur.com/lMmn1wy.gif",
             "https://i.imgur.com/TuSUTg5.gif",
             "https://i.imgur.com/9Ql97mO.gif",
             "https://i.imgur.com/VBGqeIU.gif",
             "https://i.imgur.com/uPZwGFQ.gif",
             "https://i.imgur.com/Su0X9iF.gif",
             "https://i.imgur.com/eNiOIMB.gif",
             "https://i.imgur.com/gsAGyoI.gif",
             "https://cdn.weeb.sh/images/HyPjmytDW.gif",
             "https://cdn.weeb.sh/images/BJ8o71tD-.gif",
             "https://cdn.weeb.sh/images/BJLCX1Kw-.gif",
             "https://cdn.weeb.sh/images/rJvR71KPb.gif",
             "https://cdn.weeb.sh/images/SkZTQkKPZ.gif",
             "https://cdn.weeb.sh/images/Hkw1VkYP-.gif",
             "https://cdn.weeb.sh/images/BkxEo7ytDb.gif",
             "https://cdn.weeb.sh/images/B1fnQyKDW.gif",
             "https://cdn.weeb.sh/images/Bkj-oaV0Z.gif",
             "https://cdn.weeb.sh/images/r1siXJKw-.gif",
             "https://cdn.weeb.sh/images/r1VF-lcyz.gif",
             "https://cdn.weeb.sh/images/BJgsX1Kv-.gif",
             "https://cdn.weeb.sh/images/SkKn-xc1f.gif",
             "https://cdn.weeb.sh/images/Sk9mfCtY-.gif",
             "https://cdn.weeb.sh/images/ry_RQkYDb.gif",
             "https://cdn.weeb.sh/images/HkK2mkYPZ.gif",
             "https://cdn.weeb.sh/images/S1ylxxc1M.gif",
             "https://cdn.weeb.sh/images/SJdXoVguf.gif",
             "https://cdn.weeb.sh/images/ByHUMRNR-.gif",
             "https://cdn.weeb.sh/images/SkdyfWCSf.gif",
             "https://cdn.weeb.sh/images/rknn7Jtv-.gif",
             "https://cdn.weeb.sh/images/rJgTQ1tvb.gif",
             "https://cdn.weeb.sh/images/rkaqm1twZ.gif",
             "https://cdn.weeb.sh/images/ryn_Zg5JG.gif",
             "https://cdn.weeb.sh/images/SJ-CQytvW.gif",
         ],
         "pat": [
             "https://cdn.weeb.sh/images/r180y1Yvb.gif",
             "https://img2.gelbooru.com/images/56/b9/56b9297e70fd0312aba34e7ed1608b27.gif",
             "https://img2.gelbooru.com/images/ce/ea/ceea3600c9de0fb5a2452d1e9f2d714b.gif",
             "https://img2.gelbooru.com/images/4e/08/4e0895594994c5eedf5a1991f02bd4dc.gif",
             "https://img2.gelbooru.com/images/c7/41/c741fec81ea5eceb8ebcc7b4dc2bedd5.gif",
             "http://i.imgur.com/10VrpFZ.gif",
             "http://i.imgur.com/x0u35IU.gif",
             "http://i.imgur.com/0gTbTNR.gif",
             "http://i.imgur.com/hlLCiAt.gif",
             "http://i.imgur.com/sAANBDj.gif",
             "https://i.imgur.com/10VrpFZ.gif"
             "https://i.imgur.com/x0u35IU.gif",
             "https://i.imgur.com/sAANBDj.gif",
             "https://i.imgur.com/wtxwpm1.gif",
             "https://i.imgur.com/3eR7weH.gif",
             "https://i.imgur.com/cK8Ro3x.gif",
             "https://i.imgur.com/qtHlt3n.gif",
             "https://i.imgur.com/bzzodCZ.gif",
             "https://cdn.weeb.sh/images/r180y1Yvb.gif",
             "https://cdn.weeb.sh/images/Sky1x1YwW.gif",
             "https://cdn.weeb.sh/images/r1Y5L6NCZ.gif",
             "https://cdn.weeb.sh/images/HJGQlJYwb.gif",
             "https://cdn.weeb.sh/images/rkBZkRttW.gif",
             "https://cdn.weeb.sh/images/rJavp1KVM.gif",
             "https://cdn.weeb.sh/images/r1AsJ1twZ.gif",
             "https://cdn.weeb.sh/images/ry1tlj2AW.gif",
             "https://cdn.weeb.sh/images/HyqTkyFvb.gif",
             "https://cdn.weeb.sh/images/H1jnJktPb.gif",
             "https://cdn.weeb.sh/images/ryLKqTVCW.gif",
             "https://cdn.weeb.sh/images/rJJXgJFDW.gif",
             "https://i.imgur.com/grAHcaB.gif",
             "https://cdn.weeb.sh/images/SJS1lyYwW.gif",
             "https://cdn.weeb.sh/images/rkbblkYvb.gif",
             "https://cdn.weeb.sh/images/H1s5hx0Bf.gif",
             "https://cdn.weeb.sh/images/rkSN7g91M.gif",
             "https://cdn.weeb.sh/images/rktsca40-.gif",
             "https://cdn.weeb.sh/images/ryh6x04Rb.gif",
             "https://cdn.weeb.sh/images/rkTC896_f.gif",
             "https://cdn.weeb.sh/images/SJudB96_f.gif",
             "https://cdn.weeb.sh/images/SJudB96_f.gif",
             "https://cdn.weeb.sh/images/r1lVQgcyG.gif",
         ],
         "lick": [
             "https://media1.tenor.com/images/c4f68fbbec3c96193386e5fcc5429b89/tenor.gif?itemid=13451325",
             "https://media1.tenor.com/images/ec2ca0bf12d7b1a30fea702b59e5a7fa/tenor.gif?itemid=13417195",
             "https://cdn.weeb.sh/images/HkEqiExdf.gif",
             "https://media1.tenor.com/images/5f73f2a7b302a3800b3613095f8a5c40/tenor.gif?itemid=10005495",
             "https://media1.tenor.com/images/6b701503b0e5ea725b0b3fdf6824d390/tenor.gif?itemid=12141727",
             "https://media1.tenor.com/images/069076cc8054bb8b114c5a37eec70a1f/tenor.gif?itemid=13248504",
             "https://media1.tenor.com/images/fc0ef2ba03d82af0cbd6c5815c3c83d5/tenor.gif?itemid=12141725",
             "https://media1.tenor.com/images/d702fa41028207c6523b831ec2db9467/tenor.gif?itemid=5990650",
             "https://media1.tenor.com/images/81769ee6622b5396d1489fb4667fd20a/tenor.gif?itemid=14376074",
             "https://media1.tenor.com/images/feeef4685f9307b76c78a22ba0a69f48/tenor.gif?itemid=8413059",
             "https://media1.tenor.com/images/efd46743771a78e493e66b5d26cd2af1/tenor.gif?itemid=14002773",
         ],
         "highfive": [
             "https://media1.tenor.com/images/0ae4995e4eb27e427454526c05b2e3dd/tenor.gif?itemid=12376992",
             "https://media1.tenor.com/images/7b1f06eac73c36721912edcaacddf666/tenor.gif?itemid=10559431",
             "https://media1.tenor.com/images/c3263b8196afc25ddc1d53a4224347cd/tenor.gif?itemid=9443275",
             "https://media1.tenor.com/images/56d6725009312574e4798c732cebc5fe/tenor.gif?itemid=12312526",
             "https://media1.tenor.com/images/e96d2396570a2fadd9c83e284a1ca675/tenor.gif?itemid=5390726",
             "https://media1.tenor.com/images/106c8e64e864230341b59cc892b5a980/tenor.gif?itemid=5682921",
             "https://media1.tenor.com/images/b714d7680f8b49d69b07bc2f1e052e72/tenor.gif?itemid=13400356",
             "https://media1.tenor.com/images/0c23b320822afd5b1ce3faf01c2b9b69/tenor.gif?itemid=14137078",
             "https://media1.tenor.com/images/e2f299d05a7b1832314ec7a331440d4e/tenor.gif?itemid=5374033",
             "https://media1.tenor.com/images/16267f3a34efb42598bd822effaccd11/tenor.gif?itemid=14137081",
             "https://media1.tenor.com/images/9730876547cb3939388cf79b8a641da9/tenor.gif?itemid=8073516",
             "https://media1.tenor.com/images/ce85a2843f52309b85515f56a0a49d06/tenor.gif?itemid=14137077",
         ],
         "feed": [
             "https://media1.tenor.com/images/93c4833dbcfd5be9401afbda220066ee/tenor.gif?itemid=11223742",
             "https://media1.tenor.com/images/33cfd292d4ef5e2dc533ff73a102c2e6/tenor.gif?itemid=12165913",
             "https://media1.tenor.com/images/72268391ffde3cd976a456ee2a033f46/tenor.gif?itemid=7589062",
             "https://media1.tenor.com/images/4b48975ec500f8326c5db6b178a91a3a/tenor.gif?itemid=12593977",
             "https://media1.tenor.com/images/187ff5bc3a5628b6906935232898c200/tenor.gif?itemid=9340097",
             "https://media1.tenor.com/images/15e7d9e1eb0aad2852fabda1210aee95/tenor.gif?itemid=12005286",
             "https://media1.tenor.com/images/d08d0825019c321f21293c35df8ed6a9/tenor.gif?itemid=9032297",
             "https://media1.tenor.com/images/571da4da1ad526afe744423f7581a452/tenor.gif?itemid=11658244",
             "https://media1.tenor.com/images/6bde17caa5743a22686e5f7b6e3e23b4/tenor.gif?itemid=13726430",
             "https://media1.tenor.com/images/fd3616d34ade61e1ac5cd0975c25a917/tenor.gif?itemid=13653906",
             "https://imgur.com/v7jsPrv",
         ],
         "tickle": [
             "https://img2.gelbooru.com/images/c4/41/c441cf1fce1fe51420796f6bd0e420e1.gif",
             "https://img2.gelbooru.com/images/00/a8/00a8b5ad3ceb7b063ed8a4a59f7c8bdf.gif",
             "https://img2.gelbooru.com/images/51/63/516318277e9438626c12d0543eb5808b.gif",
             "https://img2.gelbooru.com/images/0c/e4/0ce45bee2e1aaed9f1e650438f1e2867.gif",
             "https://img2.gelbooru.com/images/11/74/1174ccbee672bd3f1129f5dc36964926.gif",
             "https://media1.tenor.com/images/02f62186ccb7fa8a2667f3216cfd7e13/tenor.gif?itemid=13269751",
             "https://media1.tenor.com/images/d38554c6e23b86c81f8d4a3764b38912/tenor.gif?itemid=11379131",
             "https://media1.tenor.com/images/05a64a05e5501be2b1a5a734998ad2b2/tenor.gif?itemid=11379130",
         ],
         "poke": [
             "https://img2.gelbooru.com/images/07/86/078690a58e0b816e8e00cc58e090b499.gif",
             "https://img2.gelbooru.com/images/b7/89/b789369db69022afde47a1ed62598ec6.gif",
             "https://img2.gelbooru.com/images/49/ec/49ecc543b7b0b680ad0c27c29e942a21.gif",
             "https://img2.gelbooru.com/images/91/ef/91ef340231f6d537836e23c8ab90a255.gif",
             "https://img2.gelbooru.com/images/62/d9/62d9a16a640bfcd25dd6159e53fc50d2.gif",
             "https://img2.gelbooru.com/images/1d/8b/1d8b77bf65858101a82d195deaa39252.gif",
             "https://img2.gelbooru.com/images/c0/22/c022dc318c7f014d7bac6c2300b9f7a2.gif",
             "https://media1.tenor.com/images/3b2bfd09965bd77f2a8cb9ba59cedbe4/tenor.gif?itemid=5607667",
             "https://media1.tenor.com/images/514efe749cb611eb382713596e3427d8/tenor.gif?itemid=13054528",
             "https://media1.tenor.com/images/8795ff617de989265907eed8029a99a3/tenor.gif?itemid=14629871",
             "https://media1.tenor.com/images/1e0ea8b241a7db2b9c03775133138733/tenor.gif?itemid=10064326",
             "https://media1.tenor.com/images/90f68d48795c51222c60afc7239c930c/tenor.gif?itemid=8701034",
             "https://media1.tenor.com/images/01b264dc057eff2d0ee6869e9ed514c1/tenor.gif?itemid=14346763",
             "https://media1.tenor.com/images/f8a48a25f47d5d12342705c7c87368bb/tenor.gif?itemid=14134415",
             "https://media.tenor.com/images/6b5c1554a6ee9d48ab0392603bab8a8e/tenor.gif",
         ],
         "smug": [
             "https://cdn.nekos.life/v3/sfw/gif/smug/smug_027.gif",
             "https://cdn.nekos.life/v3/sfw/gif/smug/smug_057.gif",
             "https://i.kym-cdn.com/photos/images/original/001/087/562/93c.gif",
             "https://i.kym-cdn.com/photos/images/newsfeed/001/161/167/eda.gif",
             "https://media1.tenor.com/images/d9b3127da3f9419cbb28f9f7c00860d8/tenor.gif?itemid=9588226",
             "https://media1.tenor.com/images/0097fa7f957477f9edc5ff147bb9a5ad/tenor.gif?itemid=12390496",
         ],
         "sex": [
             "https://img.xbooru.com//images/625/76b9da771113307c41f04b9a7528a5c1.gif",
             "https://66.media.tumblr.com/a4e98810b524cfdcef4ea9d4f51d70d3/tumblr_prq0m1bOwW1wdtwnn_500.gif",
             "https://sexdicted.com/wp-content/uploads/2019/10/anime_lesbian_sex_-5613.gif",
             "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS44aCI42B5UfwGgjNWn359489NqPw_aQwSdL86h5cUW0oldOXjOg&s",
             "http://thumbs.megapornx.com/xxx/anime-bouncing-couch-gif-hentai-maid-nipples-pussy-sex-sexy.gif",
         ],
     }
     self.config.register_global(**default_global)
Example #55
0
 def __init__(self, bot):
     self.bot = bot
     self.config = Config.get_conf(self, identifier=420982359871324)
     config_scheme = {"games": {}}
     self.config.register_guild(**config_scheme)