Created
January 8, 2019 11:08
-
-
Save Malarne/77e7c969e8524ed44e044eec07653e00 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()) | |
async def on_message(self, message): | |
await self.web.get_message(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment