Skip to content

Commit c52f9a1

Browse files
committed
Util is_busy function (boilerplate for mnow)
1 parent ce099e3 commit c52f9a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/pycamp_bot/models.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ def __str__(self):
3636
rv_str += 'Admin' if self.admin else 'Commoner'
3737
return rv_str
3838

39+
def is_busy(self, moment):
40+
import random
41+
if random.random() > 0.5:
42+
return True
43+
return False
3944

4045
class Pycamp(BaseModel):
4146
'''

0 commit comments

Comments
 (0)