mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 16:14:36 +00:00
14 lines
261 B
Python
14 lines
261 B
Python
from party.chat import Chat
|
|
from faker import Faker
|
|
|
|
fake = Faker()
|
|
|
|
Chat.init()
|
|
|
|
def generate_message():
|
|
Chat.insertMessage(fake.text(), fake.name(), fake.date_time().isoformat())
|
|
|
|
MESSAGE_COUNT = 1000
|
|
for i in range(MESSAGE_COUNT):
|
|
generate_message()
|