sopel/modules/pingall.py

17 lines
354 B
Python
Raw Normal View History

#!/usr/bin/env python3
2017-11-22 19:26:40 -05:00
"""
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 in bot.privileges[trigger.sender].keys():
2017-11-22 19:26:40 -05:00
msg += name + ' '
bot.say(msg.strip())