sopel/modules/pingall.py

18 lines
386 B
Python
Raw Normal View History

2017-11-22 19:26:40 -05:00
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Pings everyone in the channel.
"""
import module
@module.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.
"""
msg = ""
for name, priv in bot.privileges[trigger.sender].items():
msg += name + ' '
bot.say(msg.strip())