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.
|
|
|
|
"""
|
2018-03-25 14:27:40 -04:00
|
|
|
names = list(bot.channels[trigger.channel].users.keys())
|
|
|
|
if "Ishd" in names:
|
|
|
|
names.remove("Ishd")
|
|
|
|
if "Ishd2" in names:
|
|
|
|
names.remove("Ishd2")
|
|
|
|
bot.say(" ".join(names))
|