This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aiohttp import web | |
import asyncio | |
class WebTest: | |
def __init__(self, bot): | |
self.app = web.Application() | |
self.bot = bot | |
self.port = 8080 | |
self.handler = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .webserver import WebTest | |
from redbot.core import checks, Config | |
import discord | |
from redbot.core import commands | |
import asyncio | |
from aiohttp import web | |
class YourCog(commands.Cog): | |
def __init__(self, bot): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aiohttp import web | |
import asyncio | |
from . import __path__ | |
import os | |
from shutil import copyfile | |
import discord | |
class WebTest: | |
def __init__(self, bot): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .webserver import WebTest | |
from redbot.core import checks, Config | |
import discord | |
from redbot.core import commands | |
import asyncio | |
from aiohttp import web | |
class YourCog(commands.Cog): | |
def __init__(self, bot): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", | |
"meta": { | |
"version": "PTDL_v1" | |
}, | |
"exported_at": "2019-01-09T23:27:26+01:00", | |
"name": "Red-DiscordBot", | |
"author": "mail@malarne.fr", | |
"description": "Red-DiscordBot", | |
"image": "quay.io\/parkervcp\/pterodactyl-images:python3", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import re | |
from redbot.core import checks, Config | |
import discord | |
from redbot.core import commands | |
from redbot.core.data_manager import bundled_data_path | |
import asyncio | |
import datetime | |
from .userprofile import UserProfile | |
from PIL import Image, ImageDraw, ImageFont |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from redbot.core import checks, Config | |
from redbot.core.i18n import Translator, cog_i18n | |
import discord | |
from redbot.core import commands | |
from redbot.core.utils import mod | |
import asyncio | |
import datetime | |
class Account(commands.Cog): | |
"""The Account Cog""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from redbot.core import checks, Config | |
import discord | |
from redbot.core import commands | |
import asyncio | |
import datetime | |
from redbot.core.i18n import Translator, cog_i18n | |
_ = Translator("Anarchy", __file__) | |
@cog_i18n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@commands.command() | |
@apikeyset() | |
async def history(self, ctx, region, summoner, count : int = 5): | |
"""Shows X last game of a summoner (default: 5). | |
NB: if your summoner name contains spaces, use "" (eg: "My summoner name")""" | |
msg = await ctx.send(f"Loading last {count} games of {summoner} ...") | |
async with ctx.typing(): | |
histo = await self.stats.get_history(count, region, summoner) | |
if not histo: | |
return await ctx.send("Unknown region or summoner.\nList of league of legends regions:" + '\n'.join(self.stats.regions.keys)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from redbot.core import checks, Config | |
from redbot.core.i18n import Translator, cog_i18n | |
import discord | |
from redbot.core import commands | |
from redbot.core.utils.menus import menu, DEFAULT_CONTROLS | |
from redbot.core.utils import mod | |
import asyncio | |
import datetime | |
import aiohttp | |
from .neeko import Neeko |
OlderNewer