# Chat_Names 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 Futurama, but you can set up whatever list you want. ### Making it talk to Owncast 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. ### Choosing a list 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. * Must match the list name exactly. * Do **not** enclose it in quotes. There are three pre-populated lists: * looneytunes contains a list of characters from the old (really old now) "Looney Tunes" cartoons. * lego_city_undercover contains a list of characters from the game "Lego City Undercover". * futurama contains a list of characters from the show "Futurama". ### Creating your own list 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](https://www.w3schools.com/python/python_lists.asp). ### Running the script 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.