Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Add documentation for features and commands
Browse files Browse the repository at this point in the history
  • Loading branch information
freedomofkeima committed Jan 12, 2017
1 parent e55d811 commit a3aad73
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Maid-chan name is inspired from [Sakurasou's Artificial Intelligence](http://sakurasounopetnakanojo.wikia.com/wiki/Maid).

If you have any other ideas, I am accepting contributions :) For developers, you could access [Sphinx documentation here](https://messenger-maid-chan.readthedocs.io/) [In Progress].
If you have any other ideas, I am accepting contributions :) For developers, you could access [the documentation pages for developers here](https://messenger-maid-chan.readthedocs.io/). For others who are interested in using Maid-chan features, please ask me directly and head to [Maid-chan Facebook Page](https://www.facebook.com/maidchan2/).

## How to Run

Expand Down Expand Up @@ -84,4 +84,4 @@ All time-related features are currently handled in **UTC+9 (Japan Time)**.

This project itself is licensed under MIT License. All images are owned by their respective creators.

Last Updated: January 11, 2017
Last Updated: January 13, 2017
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosectionlabel',
# 'sphinx.ext.viewcode'
'sphinx.ext.viewcode'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
89 changes: 87 additions & 2 deletions docs/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,93 @@
Features Overview
=================

Feature List
------------
Features List
-------------

Currently, Maid-chan has the following features:

- :ref:`Image Processing with Primitive`: For every uploaded images to Maid-chan, Maid-chan will convert it to a geometric primitive GIF via `Primitive`_.

.. image:: https://freedomofkeima.com/images/maid-chan/primitive_scr.jpg
:alt: maid-primitive-messenger
:align: center
:width: 300pt

.. image:: https://freedomofkeima.com/images/maid-chan/primitive.gif
:alt: maid-primitive-gif
:align: center
:width: 300pt

- :ref:`Chatbot with ChatterBot`: For every text messages outside the provided available commands, Maid-chan will send a text response via `ChatterBot`_ and `langdetect`_ (to detect the language validity).

.. image:: https://freedomofkeima.com/images/maid-chan/chatterbot.png
:alt: maid-chatbot-messenger
:align: center
:width: 300pt

- :ref:`Daily Offerings`: If user decides to subscribe for offerings feature, Maid-chan will send a good morning and a good night message with one additional image from `offerings/stock` directory.

.. image:: https://freedomofkeima.com/images/maid-chan/daily_morning_offerings.png
:alt: maidchan-offerings-morning
:align: center
:width: 300pt

.. image:: https://freedomofkeima.com/images/maid-chan/daily_night_offerings.png
:alt: maidchan-offerings-night
:align: center
:width: 300pt

- :ref:`Daily Japanese Lesson`: If user decides to subscribe for Japanese lesson feature, Maid-chan will send a Kanji (N1-N4, by choice) and a Vocabulary for each day.

.. image:: https://freedomofkeima.com/images/maid-chan/daily_japanese.png
:alt: maidchan-japanese-messenger
:align: center
:width: 300pt

Currently, Maid-chan only supports `Asia/Tokyo` timezone (**UTC +9**).


Available Commands
------------------

All commands receive 2 parameters: `redis_client` as `RedisDriver` object and `recipient_id` as user's identifier.

.. autofunction:: maidchan.command.process_help

**help** is used to get the list of all available commands from Maid-chan.

.. autofunction:: maidchan.command.process_subscribe_offerings

**subscribe offerings** is used to subscribe daily offerings.

.. autofunction:: maidchan.command.process_unsubscribe_offerings

**unsubscribe offerings** is used to unsubscribe daily offerings.

.. autofunction:: maidchan.command.process_update_offerings

**update offerings** is used to update information (wake up & sleeping time) for daily offerings.

.. autofunction:: maidchan.command.process_subscribe_japanese

**subscribe japanese** is used to subscribe daily Japanese lesson.

.. autofunction:: maidchan.command.process_unsubscribe_japanese

**unsubscribe japanese** is used to unsubscribe daily Japanese lesson.

.. autofunction:: maidchan.command.process_update_japanese

**update japanese** is used to update information (Kanji N1-N4 level) for daily Japanese lesson.

.. autofunction:: maidchan.command.process_update_name

**update name** is used to change user's nickname. By default, Maid-chan will use `onii-chan` to call users.

.. autofunction:: maidchan.command.process_show_profile

**show profile** is used to show user's nickname, subscription status, and preference.

.. _Primitive: https://github.com/fogleman/primitive
.. _ChatterBot: https://github.com/gunthercox/ChatterBot
.. _langdetect: https://github.com/Mimino666/langdetect
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Maid-chan name is inspired from `Sakurasou's Artificial Intelligence`_.

This documentation is intended for developers.

For users who are interested in using Maid-chan features, please ask me directly and head to `Maid-chan Facebook Page`_.
For non-developers who are interested in using Maid-chan features, please ask me directly and head to `Maid-chan Facebook Page`_.

Maid-chan Overview
==================
Expand Down

0 comments on commit a3aad73

Please sign in to comment.