scheduled counter, does not work
This commit is contained in:
parent
5a062e0cbc
commit
86fe45c626
12
src/main.py
12
src/main.py
|
@ -5,7 +5,6 @@ from timeit import default_timer as timer
|
|||
import configparser
|
||||
import out
|
||||
import math, datetime
|
||||
import colorama
|
||||
from colorama import Fore, Style
|
||||
from collections import Counter
|
||||
import re
|
||||
|
@ -218,6 +217,16 @@ class MediaCounter(UserCount):
|
|||
self.inc(msg.from_id)
|
||||
|
||||
|
||||
# How many messages from a user are scheduled?
|
||||
# class ScheduledCounter(UserCount):
|
||||
# def __init__(self):
|
||||
# super().__init__("Schedules/User")
|
||||
#
|
||||
# def addMsg(self, msgnum, msg, chat):
|
||||
# if msg.from_scheduled:
|
||||
# self.inc(msg.from_id)
|
||||
|
||||
|
||||
class MaxCounter(DiscreteCount):
|
||||
count = 0
|
||||
|
||||
|
@ -349,6 +358,7 @@ def analyseChat(dialog, output):
|
|||
UserEdits(),
|
||||
WordCounter(),
|
||||
MentionCounter(),
|
||||
# ScheduledCounter(),
|
||||
EmojiCounter(),
|
||||
UserAwnsers(),
|
||||
MediaCounter(),
|
||||
|
|
Loading…
Reference in New Issue