From 90ce92dc39395444862edfc7946ef7a1195f2464 Mon Sep 17 00:00:00 2001 From: dngfx Date: Fri, 31 Aug 2018 10:51:47 +0100 Subject: Revert "Reformat" This reverts commit abed9cf --- modules/ids.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/ids.py') diff --git a/modules/ids.py b/modules/ids.py index c447bafb..c8bd8042 100644 --- a/modules/ids.py +++ b/modules/ids.py @@ -1,17 +1,18 @@ + + class Module(object): _name = "IDs" - def __init__(self, bot): bot.events.on("received.command.myid").hook(self.my_id, - help="Show your user ID") + help="Show your user ID") bot.events.on("received.command.channelid").hook( self.channel_id, channel_only=True, help="Show the current channel's ID") def my_id(self, event): event["stdout"].write("%s: %d" % (event["user"].nickname, - event["user"].id)) + event["user"].id)) def channel_id(self, event): event["stdout"].write("%s: %d" % (event["target"].name, - event["target"].id)) + event["target"].id)) -- cgit v1.3.1-10-gc9f91