#!/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. """ nicks = list(bot.channels[trigger.channel].users.keys()) second_class_citizens = ["Ishd", "Ishd2", "Ishd_"] nicks = [n for n in nicks if n not in second_class_citizens] bot.msg(" ".join(nicks))