Conditions | 2 |
Total Lines | 19 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """Shared functions between cogs and main program""" |
||
29 | async def TF_emoji(status: bool) -> str: |
||
30 | """TF_emoji |
||
31 | |||
32 | Returns string for emoji for true false. |
||
33 | |||
34 | Arguments: |
||
35 | --- |
||
36 | status {bool} -- If the value is true |
||
37 | Returns |
||
38 | --- |
||
39 | str -- String value of emoji |
||
40 | |||
41 | |||
42 | Returns: |
||
43 | str -- either a check mark or x emoji |
||
44 | """ |
||
45 | if status: |
||
46 | return ":white_check_mark:" |
||
47 | return ":x:" |
||
48 | |||
68 |