2017-08-04 03:00:19 +00:00
# nicethings
2020-01-20 19:17:21 +00:00
2018-08-07 14:21:41 +00:00
A Python program to be used on shared unix servers to cheer people up (A little program for [tilde.town ](https://tilde.town ))
2017-08-04 03:00:19 +00:00
2018-11-12 03:01:21 +00:00
# To-dos
2020-01-20 19:17:21 +00:00
- [ ] Decentralize by adding to and pulling from a text file in a user's home directory
<!-- markdown - toc start - Don't edit this section. Run M - x markdown - toc - refresh - toc -->
# Table of Contents
- [How it works ](#how-it-works )
- [Usage ](#usage )
- [Adding a message to the file: ](#adding-a-message-to-the-file )
- [Outputting a random line from list.txt: ](#outputting-a-random-line-from-listtxt )
<!-- markdown - toc end -->
2018-11-12 03:01:21 +00:00
2018-11-12 02:50:10 +00:00
# How it works
2020-01-20 19:17:21 +00:00
2018-03-13 14:45:10 +00:00
Stores the user's input into a generated `list.txt` file if an argument is given in quotes. If no arguments are given, a random line from the `list.txt` file will be displayed.
2017-08-04 03:00:19 +00:00
2018-11-12 02:50:10 +00:00
# Usage
2020-01-20 19:17:21 +00:00
Currently, a user can only add and output nice things to and from a list.txt located in m455's directory
2018-11-12 02:50:10 +00:00
## Adding a message to the file:
2020-01-20 19:17:21 +00:00
2017-10-02 16:51:40 +00:00
`$ nicethings "insert your message here"`
2018-08-07 18:12:28 +00:00
2018-11-12 02:50:10 +00:00
## Outputting a random line from list.txt:
2020-01-20 19:17:21 +00:00
2017-10-02 16:51:40 +00:00
`$ nicethings`