19 lines
385 B
Python
19 lines
385 B
Python
|
from discord.ext import commands
|
||
|
import discord
|
||
|
import pymysql
|
||
|
|
||
|
|
||
|
class NewServer(commands.Cog):
|
||
|
def __init__(self, client):
|
||
|
self.client = client
|
||
|
|
||
|
@commands.Cog.listener()
|
||
|
async def on_message(self, message):
|
||
|
|
||
|
if isinstance(message.channel, discord.DMChannel):
|
||
|
print("we got a message")
|
||
|
|
||
|
|
||
|
def setup(client):
|
||
|
client.add_cog(NewServer(client))
|