Make usernames 5 letter words

This commit is contained in:
Parker M. 2024-07-20 00:10:38 -05:00
parent 00d217f453
commit bb77e85ded
No known key found for this signature in database
GPG Key ID: 95CD2E0C7E329F2A
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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