yagop / telegram-bot

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

Kick by reply! #333

Open rockneurotiko opened 8 years ago

rockneurotiko commented 8 years ago

I realy watn kic by relpy!

professor93 commented 8 years ago

:joy: :joy: :joy:

rizaumami commented 8 years ago

Is it a joke? We can create a patch for tg based on This pull-request Put this patch inside patches folder, then add a single line to execute this patch in launch.sh Perhaps, we need to edit banhammer.lua plugin or create a dedicated kick_by_reply.lua

yagop commented 8 years ago

:laughing: :laughing: :laughing:

benjarobbi commented 8 years ago

:laughing: :laughing: :laughing: :laughing: :laughing: :laughing:

rockneurotiko commented 8 years ago

It was a joke... but this is really great!! Thanks!

siyanew commented 8 years ago

what kind of joke ?! and about what :D ?!

rizaumami commented 8 years ago

@siyanew Your plugin works. But we need a failsafe to prevent it kicking bot, admin and sudoers.

yagop commented 8 years ago

There is a plugin which do this: https://github.com/yagop/telegram-bot/blob/master/plugins/kickme.lua This issue is a joke.

Why are you using get_message ? I think there is no need to do it. get_message_callback can't return anything.

siyanew commented 8 years ago

@yagop it was for kick by reply , @rizaumami it is for test and kick for sudoers , you're right you can complete this .

buzz3rs commented 8 years ago

can you try making ban by reply or even promte/demote ? :)

rizaumami commented 8 years ago

I did write kick/ban by reply for my guard bot. See https://github.com/rizaumami/merbot. For now, I'm not interested in moderation bot.

buzz3rs commented 8 years ago

@rizaumami thanks for the plugin ...what about promoting or demoting

yonijuerga commented 8 years ago

where is the "kick/ban by reply" code, in which plugin, bro?

buzz3rs commented 8 years ago

@yonijuerga in the banhammer plugin