1
+ import random
2
+
1
3
import discord
2
4
import httpx
3
5
from discord import app_commands
@@ -20,8 +22,8 @@ def __init__(self, bot: commands.Bot):
20
22
self .default_options = {
21
23
"active" : "1" ,
22
24
"domain" : "atl.tools" ,
23
- "password" : "changeme1234! " ,
24
- "password2" : "changeme1234! " ,
25
+ "password" : "ErrorPleaseReportThis " ,
26
+ "password2" : "ErrorPleaseReportThis " ,
25
27
"quota" : "3072" ,
26
28
"force_pw_update" : "1" ,
27
29
"tls_enforce_in" : "0" ,
@@ -40,6 +42,20 @@ async def register(
40
42
mailbox_data = self .default_options .copy ()
41
43
mailbox_data ["local_part" ] = username
42
44
mailbox_data ["name" ] = username
45
+
46
+ # Generate 6 random numbers
47
+ password = "changeme"
48
+ for _ in range (6 ):
49
+ password += str (random .randint (0 , 9 ))
50
+
51
+ # Generate 4 random special characters
52
+ special_chars = "!@#$%^&*"
53
+ for _ in range (4 ):
54
+ password += random .choice (special_chars )
55
+
56
+ mailbox_data ["password" ] = password
57
+ mailbox_data ["password2" ] = password
58
+
43
59
# Ensure tags are copied correctly and member ID is added
44
60
tags = (
45
61
self .default_options ["tags" ]
@@ -87,7 +103,7 @@ async def register(
87
103
88
104
**Email Address**: `{ mailbox_info } `
89
105
**Access Mailbox**: [mail.atl.tools](https://mail.atl.tools)
90
- **Default Password**: `changeme1234!`
106
+ **Default Password**: ||` { password } `||
91
107
92
108
**Please change your password after logging in for the first time.**
93
109
0 commit comments