A Python script that uses lists of names to create a suggested chat names list on your Owncast instance.
|
|
4 viikkoa sitten | |
|---|---|---|
| LICENSE | 4 viikkoa sitten | |
| README.md | 4 viikkoa sitten | |
| chatnames.py | 4 viikkoa sitten |
A Python script that uses lists of names to create a suggested chat names list on your Owncast instance.
I have it pre-populated with lists of characters from Looney Tunes, Lego City Undercover, and Futurma, but you can set up whatever list you want.
Near the top of the script, you'll see these three variables:
```
owncast_url = "https://" # The URL of your owncast instance
admin_name = "admin" # Your Owncast admin username
admin_passwd = "password" # Your Owncast admin passwd
```
Edit accordingly.
You'll find the following entry near the bottom of the script:
```
list_name = futurama
```
As it sits, it is configured to use the list of futurama names. Change futurama to the name of the list you'd like to use.
There are three pre-populated lists:
If you're not familiar with python lists, they're pretty straight forward. Just follow the following format:
```my_name = ["Bob", "Joe", "Sue"]
```
The part before the = sign is the name of the list. It cannot contain any spaces or punctuation
The part after the = sign is the actual list. Make sure each of the names are enclosed in double quotes, with a comma and then a space between names. The last name in the list does not require a trailing comma or space. Enclose the whole list of names in standard brackets, as demonstrated in the above example.
You can find a more detailed tutorial here.
From the command line, enter the folder containing chatnames.py, and run the following command:
```python3 chatnames.py
```
The output of the script will tell you if it was successful or not.