Commit Graph

39 Commits

Author SHA1 Message Date
ea44e9de4c add all pokemons 2024-01-26 22:36:53 +08:00
Lucas Possatti
88e82d048f Write on how to use Homebrew to install it 2017-03-26 01:08:30 -03:00
Lucas Possatti
dba6743079 Merge pull request #5 from arc279/master
Fix install script
2017-02-03 20:39:22 -02:00
Motonobu Kuryu
da8d3ecb1e Fix install script
use `cd -` on returning.
2017-02-01 17:05:17 +09:00
Lucas Possatti
00d796987e Missing dot (.) v1.0.0 2016-10-06 08:31:14 -03:00
Lucas Possatti
8f35b6294e Write about the docker version on the README.md 2016-10-06 08:29:56 -03:00
Lucas Possatti
73e67f6e77 Update README.md 2016-09-11 14:14:00 -03:00
Lucas Possatti
9a474e2bcb Add 'trap' for SIG{HUP,INT,TERM}
When one of these signals is received by the process, it will remove
the file created by the interrupted 'wget' download.
2015-06-26 20:52:21 -03:00
Lucas Possatti
ed8fbb9f25 Make the scrapper a little more readable
Maybe myself from the past was right about it. I really might have
grown stronger. :D
2015-06-26 20:11:21 -03:00
Lucas Possatti
e83b9f1567 Warn the user when an unknown option is provided 2015-06-24 21:01:29 -03:00
Lucas Possatti
90cc3aa174 Fix the build steps in the README 2015-06-24 18:29:20 -03:00
Lucas Possatti
3b7837cd11 Introduce 'pokemonthink' in the README 2015-06-24 18:28:48 -03:00
Lucas Possatti
6ca68f5809 Change image example 2015-06-24 18:15:27 -03:00
Lucas Possatti
c8880a6e98 Update README.md
Put a image example in the README, and a special thanks section.
2015-06-24 17:58:40 -03:00
Lucas Possatti
3de05be0cf Ignore all downloaded files ('scrapped-data' folder) 2015-06-24 17:02:30 -03:00
Lucas Possatti
c6c3e1e9c2 Recreate the scrapping script using shell script
This commit removes the old 'scrap_pokemon.py' script in favor of
the new 'scrap_data.sh' script. Now we don't need python anymore!
2015-06-24 16:56:42 -03:00
Lucas Possatti
640e61366b Fix the bug ignore the user provided message
A bug was introduced in commit 1fc82b6, when word wrapping was
introduced. The script was ignoring the user provided message.
What made it hang waiting for user input.

The bug is fixed now. Who could imagine that just a pair of quote
marks could break the script like that...
2015-06-24 10:56:53 -03:00
Lucas Possatti
a23a8c3d52 Create a 'pokemonthink' script
A 'pokemonthink.sh' was created in the repository. And the install
script creates a 'pokemonthink' script in the bin folder.

The 'pokemonthink' script calls pokemonsay, but using the --think
option... That's all!
2015-06-23 16:35:08 -03:00
Lucas Possatti
e05f1129db Add an option to make the pokémon think
Option:
  -t, --think
    Make the pokémon think the message, instead of saying it.
2015-06-23 16:05:17 -03:00
Lucas Possatti
1fc82b622d Add an option to specify where to wrap the message
The option is:
  -w, --word-wrap COLUMN
    Specify roughly where messages should be wrapped.
2015-06-23 15:53:40 -03:00
Lucas Possatti
a59f1b32e6 Correct typo (avaiable for available) 2015-06-14 03:41:34 -03:00
Lucas Possatti
b72f1c5327 Add an option to list all pokémon available
The option was added like this:
 -l, --list
2015-06-14 03:38:06 -03:00
Lucas Possatti
da15ecfcb7 Add a variety of options to the main script
The options added are:
 -p, --pokemon POKEMON_NAME
 -f, --file COW_FILE
 -n, --no-name
 -h, --help
2015-06-14 02:39:45 -03:00
Lucas Possatti
afc544cb20 Create README.md 2015-06-13 22:27:50 -03:00
Lucas Possatti
428172ad75 Add a license (MIT) to the code 2015-06-13 16:33:29 -03:00
Lucas Possatti
848dd83831 Remove the python version of 'pokemonsay'
The python version was not being used for anything. Let's keep only
the shell script version.
2015-06-13 16:31:38 -03:00
Lucas Possatti
e368c28532 Embed the uninstall script inside the install script
A heredoc was used in the install script to generate the uninstall
script. This was made because they share important variables, like
'$install_path'.

If someone, for example, changes the '$install_path' in the install
script, but not in the uninstall script. The latter would be brokken.
So I think this was the safest way to keep things right, even if
changes are made.
2015-06-11 15:03:00 -03:00
Lucas Possatti
62b07d0892 Change the install path
Before this, the instalation path was '~/.config/pokemonsay', but I
don't think it was the best place to install, since there should be
only configuration files in there.

The new install path is '~/.pokemonsay/' which seems like a better
aproach.
2015-06-11 14:22:44 -03:00
Lucas Possatti
2f0fa25618 Add messages to the uninstall script
Now the uninstall script displays some messages showing what has
been removed.
2015-06-11 01:13:14 -03:00
Lucas Possatti
a997e6100c Copy the uninstall script to the install directory too
Now the install script will also copy the uninstall script to the
install path, along with the other files.
2015-06-11 01:02:11 -03:00
Lucas Possatti
a2b836845a Create a uninstall script
The script simply removes the files created by the install script.
That is all!
2015-06-11 00:22:40 -03:00
Lucas Possatti
c0c02be049 Create a install script
In order to use 'pokemonsay', I need it installed somewhere. I think
a simple script is enough for that.

The install script copies the essential files to the '.config' folder
in 'home', and creates a script in the '~/bin' directory that will
run 'pokemonsay'.

I wonder if it could have been done in any better way.
2015-06-11 00:17:47 -03:00
Lucas Possatti
e28cf1f7fd Create a shell script version of 'pokemonsay'
I didn't like the script written in python. I feel like I didn't do
it quite right. The mess with pipes confuses me. It is so much
simpler to handle pipes using shell script, in my opnion.

The shell script version of 'pokemonsay' is tiny if compared to the
python version. And it does the same thing.
2015-06-11 00:13:01 -03:00
Lucas Possatti
bee5231bae Create a 'pokemonsay' python script
The python script is there to act as a 'cowsay' version but for
pokemon. It uses 'cowsay' internally, calling a subprocess to
handle cowsay.

The script doesn't accept many arguments (actually none), that's
something that can be improved. But it does display a nice result.
2015-06-11 00:07:49 -03:00
Lucas Possatti
d5dc920f08 Add generated cow files
Usually you shouldn't add generated data to the repository... But
c'mon... they are just text files. :)
2015-06-10 23:53:07 -03:00
Lucas Possatti
e02144e100 Create script to make the cow files
The script uses 'img2xterm' to generate cow files from each pokemon
image.
2015-06-10 23:50:39 -03:00
Lucas Possatti
0ca94d28fb Create a script to change the pokemon images the way I want it
The script will mirror the pokemon images so that they will be
looking to the right. And it will crop the image in order to
remove all the whitespace around the pokemon.
2015-06-10 23:47:08 -03:00
Lucas Possatti
de03846403 Ignore downloaded images 2015-06-10 23:45:00 -03:00
Lucas Possatti
3fe6993974 Create script for downloading pokemon images
The python script scraps a bulbapedia page searching do the pokemon
images and their names.
2015-06-10 23:43:08 -03:00