pull/1/head
Bobloy 7 years ago
parent b5c2d3d10b
commit e5a16c908e

@ -1,16 +1,13 @@
import asyncio import asyncio
from typing import List, Union from datetime import datetime, timedelta
import discord import discord
from discord.ext import commands from discord.ext import commands
from redbot.core import Config from redbot.core import Config
from redbot.core.bot import Red
from .source import ChatBot from .source import ChatBot
from .source.trainers import ListTrainer from .source.trainers import ListTrainer
from datetime import datetime,timedelta
class Chatter: class Chatter:
""" """
@ -43,7 +40,6 @@ class Chatter:
out = [] out = []
after = datetime.today() - timedelta(days=(await self.config.guild(ctx.guild).days())) after = datetime.today() - timedelta(days=(await self.config.guild(ctx.guild).days()))
for channel in ctx.guild.text_channels: for channel in ctx.guild.text_channels:
if in_channel: if in_channel:
channel = in_channel channel = in_channel
@ -80,6 +76,7 @@ class Chatter:
""" """
if ctx.invoked_subcommand is None: if ctx.invoked_subcommand is None:
await ctx.send_help() await ctx.send_help()
@chatter.command() @chatter.command()
async def age(self, ctx: commands.Context, days: int): async def age(self, ctx: commands.Context, days: int):
""" """
@ -137,5 +134,3 @@ class Chatter:
if not response: if not response:
response = ":thinking:" response = ":thinking:"
await channel.send(response) await channel.send(response)

Loading…
Cancel
Save