From 18197dd948deb0fae42c6e4d0a12e4252d113295 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 5 Jul 2019 08:51:37 -0400 Subject: [PATCH 1/2] ipdate user command --- sopel_modules/SpiceBot_Core_Commands/Users.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot_Core_Commands/Users.py b/sopel_modules/SpiceBot_Core_Commands/Users.py index bb36e6c..faceadb 100644 --- a/sopel_modules/SpiceBot_Core_Commands/Users.py +++ b/sopel_modules/SpiceBot_Core_Commands/Users.py @@ -11,5 +11,6 @@ import sopel_modules.SpiceBot as SpiceBot @SpiceBot.prerun('nickname') @sopel.module.nickname_commands('users', 'user') def nickname_comand_users(bot, trigger, botcom): - bot.say("WIP") - return + totalusers = len(list(SpiceBot.users.dict["all"])) + onlineusers = len(list(SpiceBot.users.dict["online"])) + bot.osd("Of the " + str(totalusers) + " that I've seen, " + str(onlineusers) + " are online currently.") From a7621b052ce53e55db42038b8ee6d92890da396b Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 5 Jul 2019 08:52:39 -0400 Subject: [PATCH 2/2] word --- sopel_modules/SpiceBot_Core_Commands/Users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot_Core_Commands/Users.py b/sopel_modules/SpiceBot_Core_Commands/Users.py index faceadb..27e06b5 100644 --- a/sopel_modules/SpiceBot_Core_Commands/Users.py +++ b/sopel_modules/SpiceBot_Core_Commands/Users.py @@ -13,4 +13,4 @@ import sopel_modules.SpiceBot as SpiceBot def nickname_comand_users(bot, trigger, botcom): totalusers = len(list(SpiceBot.users.dict["all"])) onlineusers = len(list(SpiceBot.users.dict["online"])) - bot.osd("Of the " + str(totalusers) + " that I've seen, " + str(onlineusers) + " are online currently.") + bot.osd("Of the " + str(totalusers) + " users that I've seen, " + str(onlineusers) + " are online currently.")