2018-03-16 03:13:43 -04:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
"""
|
|
|
|
Pings everyone in the channel.
|
|
|
|
"""
|
|
|
|
from module import commands
|
|
|
|
|
|
|
|
@commands('pingall', 'names')
|
|
|
|
def pingAll(bot, trigger):
|
|
|
|
"""
|
|
|
|
Says the nick of everyone in the channel. Great way to get thier
|
|
|
|
attention, or just annoy them.
|
|
|
|
"""
|
2019-10-08 11:45:21 -04:00
|
|
|
nicks = list(bot.channels[trigger.channel].users.keys())
|
2020-01-08 07:51:00 -05:00
|
|
|
second_class_citizens = ["Ishd", "Ishd2", "Ishd_"]
|
|
|
|
nicks = [n for n in nicks if n not in second_class_citizens]
|
2019-10-08 11:45:21 -04:00
|
|
|
bot.msg(" ".join(nicks))
|