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