diff --git a/README.md b/README.md
index 78c0cb1..01ca401 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Nio Template
+# Nio Template [](https://github.com/poljar/matrix-nio)
A template for creating bots with
[matrix-nio](https://github.com/poljar/matrix-nio). The documentation for
diff --git a/my_project_name/callbacks.py b/my_project_name/callbacks.py
index 4d09bea..7152e64 100644
--- a/my_project_name/callbacks.py
+++ b/my_project_name/callbacks.py
@@ -46,7 +46,12 @@ class Callbacks(object):
# Process as message if in a public room without command prefix
has_command_prefix = msg.startswith(self.command_prefix)
- if not has_command_prefix and not room.is_group:
+
+ # room.is_group is often a DM, but not always.
+ # room.is_group does not allow room aliases
+ # room.member_count > 2 ... we assume a public room
+ # room.member_count <= 2 ... we assume a DM
+ if not has_command_prefix and room.member_count > 2:
# General message listener
message = Message(self.client, self.store, self.config, msg, room, event)
await message.process()