Make command only usable in vetting room

This commit is contained in:
Panoramic 2024-06-11 11:40:27 +03:00
parent db164c15b0
commit 8997cd5d34
Signed by: Panoramic
GPG Key ID: 29FEDD73E66D32F1
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ class Command:
async def _start_vetting(self): async def _start_vetting(self):
"""Starts the vetting process""" """Starts the vetting process"""
if self.room.room_id != self.config.vetting_room_id:
text = "This command can only be used in the main vetting room!"
await send_text_to_room(self.client, self.room.room_id, text)
return
if not self.args: if not self.args:
text = "Usage: `start {user_id}\nExample: `start @someone:example.com`" text = "Usage: `start {user_id}\nExample: `start @someone:example.com`"
await send_text_to_room(self.client, self.room.room_id, text) await send_text_to_room(self.client, self.room.room_id, text)