diff options
| author | 2019-09-17 15:15:54 +0100 | |
|---|---|---|
| committer | 2019-09-17 15:15:54 +0100 | |
| commit | 0de4688540c6b0edb38b7d85e5a44152a5521aeb (patch) | |
| tree | 95617490920efeaf1e48efaf427fb5fb95d47cc2 /modules/ids.py | |
| parent | if a word is known as a nickname but the user has no location, treat as location (diff) | |
| signature | ||
add !myaccount
Diffstat (limited to 'modules/ids.py')
| -rw-r--r-- | modules/ids.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/ids.py b/modules/ids.py index f3fee05f..20a641b7 100644 --- a/modules/ids.py +++ b/modules/ids.py @@ -12,6 +12,11 @@ class Module(ModuleManager.BaseModule): """ event["stdout"].write("%s: %d" % (event["user"].nickname, event["user"].get_id())) + @utils.hook("received.command.myaccount") + @utils.kwarg("help", "Show what I think your account name is") + def account(self, event): + event["stdout"].write("%s: %s" % (event["user"].nickname, + event["user"].get_identified_account())) @utils.hook("received.command.channelid", channel_only=True) def channel_id(self, event): |
