Make usernames 5 letter words
This commit is contained in:
parent
00d217f453
commit
bb77e85ded
@ -3,6 +3,7 @@ import requests
|
||||
import random
|
||||
import string
|
||||
import sqlite3
|
||||
from wonderwords import RandomWord
|
||||
|
||||
from global_variables import JELLYFIN_URL, JELLYFIN_HEADERS, ACCOUNT_TIME
|
||||
|
||||
@ -12,7 +13,7 @@ Create a new Jellyfin account for the user and return the username and password
|
||||
|
||||
|
||||
def create_jellyfin_account(user_id):
|
||||
username = "".join(random.choices(string.ascii_lowercase + string.digits, k=5))
|
||||
username = RandomWord().word(word_min_length=5, word_max_length=5)
|
||||
password = "".join(random.choices(string.ascii_lowercase + string.digits, k=15))
|
||||
|
||||
deletion_time = datetime.datetime.now() + datetime.timedelta(hours=ACCOUNT_TIME)
|
||||
|
@ -1,4 +1,5 @@
|
||||
colorlog==6.8.2
|
||||
discord.py==2.3.2
|
||||
requests==2.32.0
|
||||
humanize==4.9.0
|
||||
humanize==4.9.0
|
||||
wonderwords==2.2.0
|
Loading…
x
Reference in New Issue
Block a user