Created
January 8, 2019 11:04
-
-
Save Malarne/2ef42e7211192c0635f9e3eaf75de8fc to your computer and use it in GitHub Desktop.
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): | |
self.bot = bot | |
self.web = WebTest(bot) | |
self.bot.loop.create_task(self.web.make_webserver()) ## Webserver now running o/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment