fulvia/modules/pingall.py

18 lines
429 B
Python
Raw Normal View History

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.
"""
names = list(bot.channels[trigger.channel].users.keys())
2018-12-15 20:37:40 -05:00
for nigger in ["Ishd", "Ishd2", "Ishd_"]:
if nigger in names:
names.remove(nigger)
2018-05-25 15:21:18 -04:00
bot.msg(" ".join(names))