yagop / telegram-bot

UNMAINTAINED - A Telegram Bot based on plugins
GNU General Public License v2.0
848 stars 502 forks source link

Req: Log plugin #161

Open nutinshell opened 9 years ago

nutinshell commented 9 years ago

A log plugin for log group chat messages history, and could do search would be nice.

rockneurotiko commented 9 years ago

Something like: !log [limit] [optionalsearch] ?

nutinshell commented 9 years ago
!log [limit] [optionalsearch]

would be cool, but add some context from match line, like 10 lines, maybe even better :)

magalvao commented 9 years ago

I have a plugin that logs every word and the number of its recurrences in a chat (excluding some common words). Then if a user type "!log 2h" the bot outputs all words in decrescent order from the last 2 hours and the number of times that word was said, something like a "trending words" plugin. It's not an ideal solution, but for a group chat like ours that have more than 15 users talking about everything it's a good thing to keep you updated with the topics.

If you want I could post the code here.

nutinshell commented 9 years ago

@magalvao that's nice, thanks for sharing it :)