Skip to content

Instantly share code, notes, and snippets.

@Malarne
Created January 8, 2019 11:04
Show Gist options
  • Save Malarne/2ef42e7211192c0635f9e3eaf75de8fc to your computer and use it in GitHub Desktop.
Save Malarne/2ef42e7211192c0635f9e3eaf75de8fc to your computer and use it in GitHub Desktop.
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