18 lines
386 B
Python
18 lines
386 B
Python
|
#! /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())
|