We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ac09b commit c307f6fCopy full SHA for c307f6f
blackjackbot/commands/admin/commands.py
@@ -152,3 +152,14 @@ def users_cmd(update, context):
152
text = "Last 24 hours: {}".format(len(players))
153
154
update.message.reply_text(text=text)
155
+
156
157
+@admin_method
158
+def bans_cmd(update, context):
159
+ """Returns the amount of players in the last 24 hours"""
160
+ db = Database()
161
+ banned_users = db.get_banned_users()
162
163
+ text = f"Banned user count: {len(banned_users)}"
164
165
+ update.message.reply_text(text=text)
0 commit comments