Twitter bot who posts pictures, videos, and GIFs of Yuuki Aine from the anime Aikatsu Friends.
- Ruby 97.9%
- Shell 2.1%
|
|
||
|---|---|---|
| lib | Fix posting videos and gifs | |
| tools | Move create dir to tools folder | |
| .gitignore | Add bundle stuff to gitignore + config | |
| aine.rb | Move run function out of CharaBot class | |
| config.yaml.default | Replace twitter gem | |
| Gemfile | Replace twitter gem | |
| Gemfile.lock | Replace twitter gem | |
| README.md | Switch from JSON to YAML and fix README.md | |
Aine Bot
Twitter bot who posts pictures, videos, and GIFs of Yuuki Aine from the anime Aikatsu Friends.
Installation
$ git clone https://github.com/IrreversibleReboot/aine_bot.git$ cd aine_bot$ bundle install$ cp config.yaml.default config.yaml- Edit the config.yaml accordingly.
- Optional: if you don't already have a media folder set up, use
$ ./create_dir_structure.shto create one.
Usage
Use $ ruby bot.rb <command> <arguments> or $ ./bot.rb <command> <arguments>.
List of commands
| Command | Arguments | Description |
|---|---|---|
| post | -d, --dry: Don't actually post the image. | Post a random image from the storage path. |
| stats | Print a stats table to STDOUT. |
Media directory structure
The bot relies on the media directory's structure to choose which message to post along with the chosen picture. As such, it's important to respect it.
| Folder name | Description |
|---|---|
fure_dcd |
Data Cardass Aikatsu Friends! screenshots. |
fure_ep** |
Aikatsu Friends! episode screenshots. Goes from 01 to 76. |
fure_opening* |
Aikatsu Friends! opening screenshots. Goes from 1 to 3. |
fure_ending* |
Aikatsu Friends! ending screenshots. Goes from 1 to 3. |
onpa_dcd |
Data Cardass Aikatsu On Parade! screenshots. |
Using create_dir_structure.sh will automatically generate this structure.